Not documented.

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

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

supported bool
read-only

Checks if this type is supported on the current platform.

Static Methods

requestPermission() → Future<String>

Properties

body String
read-only

dir String
read-only

icon String
read-only

lang String
read-only

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.

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.

permission String
read-only

tag String
read-only

title String
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