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

instanceRuntimeType → Type

read-only
supported → bool

Checks if this type is supported on the current platform.

read-only

Static Methods

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

body → String

read-only
data → Object

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
silent → bool

read-only
tag → String

read-only
title → String

read-only
vibrate → List<int>

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

addEventListener(String type, EventListener listener, [ 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, [ bool useCapture ]) → void

inherited
toString() → String

Returns the result of the JavaScript objects toString method.

inherited