Not documented.

Annotations
  • DomName('Notification')
  • Experimental()
Extends

Constants

EventStreamProvider<Event> clickEvent = const EventStreamProvider<Event>('click')
const
Static factory designed to expose click events to event handlers that are not necessarily instances of Notification.
EventStreamProvider<Event> closeEvent = const EventStreamProvider<Event>('close')
const
Static factory designed to expose close events to event handlers that are not necessarily instances of Notification.
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of Notification.
EventStreamProvider<Event> showEvent = const EventStreamProvider<Event>('show')
const
Static factory designed to expose show events to event handlers that are not necessarily instances of Notification.

Static Properties

bool supported
read-only
Checks if this type is supported on the current platform.

Static Methods

requestPermission() → Future<String>

Properties

String body
read-only
String dir
read-only
String icon
read-only
String lang
read-only
Events on
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Stream<Event> onClick
read-only
Stream of click events handled by this Notification.
Stream<Event> onClose
read-only
Stream of close events handled by this Notification.
Stream<Event> onError
read-only
Stream of error events handled by this Notification.
Stream<Event> onShow
read-only
Stream of show events handled by this Notification.
String permission
read-only
String tag
read-only
String title
read-only

Constructors

Notification(String title, {String dir: null, String body: null, String lang: null, String tag: null, String icon: null})

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
close() → void
dispatchEvent(Event event) → bool
inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited