dart:html
Notification class
- Inheritance
- Annotations
Constructors
- Notification(String title, { String dir: null, String body: null, String lang: null, String tag: null, String icon: null })
factory
Properties
- actions → List
final
- badge → String
final
- body → String
final
- data → Object
@annotation_Creates_SerializedScriptValue, @annotation_Returns_SerializedScriptValue, final
- dir → String
final
- icon → String
final
- image → String
final
- lang → String
final
- onClick → Stream<Event>
read-only
- Stream of
click
events handled by this Notification. - onClose → Stream<Event>
read-only
- Stream of
close
events handled by this Notification. - onError → Stream<Event>
read-only
- Stream of
error
events handled by this Notification. - onShow → Stream<Event>
read-only
- Stream of
show
events handled by this Notification. - renotify → bool
final
- requireInteraction → bool
final
- silent → bool
final
- tag → String
final
- timestamp → int
final
- title → String
final
- vibrate → List<int>
final
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- 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.
Methods
- close() → void
- addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
- dispatchEvent(Event event) → bool
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 a string representation of this object.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]
Static Properties
- maxActions → int
final
- permission → String
final
- supported → bool
read-only
- Checks if this type is supported on the current platform.
Static Methods
- requestPermission() → Future<String>
@JSName('requestPermission')
Constants
- clickEvent → const EventStreamProvider<Event>
- Static factory designed to expose
click
events to event handlers that are not necessarily instances of Notification. [...] const EventStreamProvider<Event>('click')
- closeEvent → const EventStreamProvider<Event>
- Static factory designed to expose
close
events to event handlers that are not necessarily instances of Notification. [...] const EventStreamProvider<Event>('close')
- errorEvent → const EventStreamProvider<Event>
- Static factory designed to expose
error
events to event handlers that are not necessarily instances of Notification. [...] const EventStreamProvider<Event>('error')
- showEvent → const EventStreamProvider<Event>
- Static factory designed to expose
show
events to event handlers that are not necessarily instances of Notification. [...] const EventStreamProvider<Event>('show')