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

Constants

clickEvent EventStreamProvider<Event>

Static factory designed to expose click events to event handlers that are not necessarily instances of Notification.

const EventStreamProvider<Event>('click')
closeEvent EventStreamProvider<Event>

Static factory designed to expose close events to event handlers that are not necessarily instances of Notification.

const EventStreamProvider<Event>('close')
errorEvent EventStreamProvider<Event>

Static factory designed to expose error events to event handlers that are not necessarily instances of Notification.

const EventStreamProvider<Event>('error')
showEvent EventStreamProvider<Event>

Static factory designed to expose show events to event handlers that are not necessarily instances of Notification.

const EventStreamProvider<Event>('show')

Static Properties

supported bool

Checks if this type is supported on the current platform.

read-only

Static Methods

internalCreateNotification() Notification

requestPermission() Future<String>

Constructors

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

factory
Notification.internal_()

Properties

read / write, inherited
body String

read-only
dir String

read-only
hashCode int

read-only, inherited
icon String

read-only
lang String

read-only
on Events

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

read-only, inherited
onClick Stream<Event>

Stream of click events handled by this Notification.

read-only
onClose Stream<Event>

Stream of close events handled by this Notification.

read-only
onError Stream<Event>

Stream of error events handled by this Notification.

read-only
onShow Stream<Event>

Stream of show events handled by this Notification.

read-only
permission String

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
tag String

read-only
title String

read-only

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addEventListener(String type, EventListener listener(Event event), [bool useCapture]) → void

inherited
close() → void

dispatchEvent(Event event) bool

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
removeEventListener(String type, EventListener listener(Event event), [bool useCapture]) → void

inherited
toString() String

Returns a string representation of this object.

inherited