Not documented.
- Annotations
- DomName('Notification')
- Experimental()
- Extends
- Object
- EventTarget
- Notification
Constants
-
EventStreamProvider<Event>
clickEvent
=
const EventStreamProvider<Event>
('click') -
constStatic factory designed to expose
click
events to event handlers that are not necessarily instances of Notification. -
EventStreamProvider<Event>
closeEvent
=
const EventStreamProvider<Event>
('close') -
constStatic factory designed to expose
close
events to event handlers that are not necessarily instances of Notification. -
EventStreamProvider<Event>
errorEvent
=
const EventStreamProvider<Event>
('error') -
constStatic factory designed to expose
error
events to event handlers that are not necessarily instances of Notification. -
EventStreamProvider<Event>
showEvent
=
const EventStreamProvider<Event>
('show') -
constStatic factory designed to expose
show
events to event handlers that are not necessarily instances of Notification.
Static Properties
- bool supported
-
read-onlyChecks 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, inheritedThis 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-onlyStream of
click
events handled by thisNotification
. - Stream<Event> onClose
-
read-onlyStream of
close
events handled by thisNotification
. - Stream<Event> onError
-
read-onlyStream of
error
events handled by thisNotification
. - Stream<Event> onShow
-
read-onlyStream of
show
events handled by thisNotification
. - 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})