On this page
Notification class
- Inheritance
-
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- Notification
- Annotations
-
- @DomName('Notification')
- @Experimental()
Constants
- clickEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Notification.clickEvent')
-
Static factory designed to expose
clickevents to event handlers that are not necessarily instances of Notification.const EventStreamProvider<Event>('click') - closeEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Notification.closeEvent')
-
Static factory designed to expose
closeevents to event handlers that are not necessarily instances of Notification.const EventStreamProvider<Event>('close') - errorEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Notification.errorEvent')
-
Static factory designed to expose
errorevents to event handlers that are not necessarily instances of Notification.const EventStreamProvider<Event>('error') - showEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Notification.showEvent')
-
Static factory designed to expose
showevents to event handlers that are not necessarily instances of Notification.const EventStreamProvider<Event>('show')
Static Properties
- instanceRuntimeType → Type
@Deprecated("Internal Use Only"), read-only
- supported → bool
read-only
-
Checks if this type is supported on the current platform.
Static Methods
Constructors
- Notification(String title, { String dir: null, String body: null, String lang: null, String tag: null, String icon: null })
factory
- Notification.internal_()
Properties
- actions → List
@DocsEditable(), @DomName('Notification.actions'), @Experimental(), read-only
- body → String
@DocsEditable(), @DomName('Notification.body'), @Experimental(), read-only
- data → Object
@DocsEditable(), @DomName('Notification.data'), @Experimental(), read-only
- dir → String
@DocsEditable(), @DomName('Notification.dir'), @Experimental(), read-only
- icon → String
@DocsEditable(), @DomName('Notification.icon'), @Experimental(), read-only
- lang → String
@DocsEditable(), @DomName('Notification.lang'), @Experimental(), read-only
- maxActions → int
@DocsEditable(), @DomName('Notification.maxActions'), @Experimental(), read-only
- onClick → Stream<Event>
@DocsEditable(), @DomName('Notification.onclick'), read-only
-
Stream of
clickevents handled by thisNotification. - onClose → Stream<Event>
@DocsEditable(), @DomName('Notification.onclose'), read-only
-
Stream of
closeevents handled by thisNotification. - onError → Stream<Event>
@DocsEditable(), @DomName('Notification.onerror'), read-only
-
Stream of
errorevents handled by thisNotification. - onShow → Stream<Event>
@DocsEditable(), @DomName('Notification.onshow'), read-only
-
Stream of
showevents handled by thisNotification. - permission → String
@DocsEditable(), @DomName('Notification.permission'), read-only
- renotify → bool
@DocsEditable(), @DomName('Notification.renotify'), @Experimental(), read-only
- requireInteraction → bool
@DocsEditable(), @DomName('Notification.requireInteraction'), @Experimental(), read-only
- silent → bool
@DocsEditable(), @DomName('Notification.silent'), @Experimental(), read-only
- tag → String
@DocsEditable(), @DomName('Notification.tag'), @Experimental(), read-only
- timestamp → int
@DocsEditable(), @DomName('Notification.timestamp'), @Experimental(), read-only
- title → String
@DocsEditable(), @DomName('Notification.title'), @Experimental(), read-only
- vibrate → List<int>
@DocsEditable(), @DomName('Notification.vibrate'), @Experimental(), read-only
- hashCode → int
read-only, inherited
- on → Events
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.
- runtimeType → Type
read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- close(
) → void @DocsEditable(), @DomName('Notification.close') - addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - dispatchEvent(
Event event) → bool @DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - toString(
) → String inherited -
Returns the result of the JavaScript objects
toStringmethod.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Notification-class.html