Dart SDK
dart:html
Notification
class
Notification
Constants
Static Properties
Static Methods
Properties
Constructors
Methods
Constants
clickEvent
closeEvent
errorEvent
showEvent
Static properties
supported
Static methods
requestPermission
Properties
body
dir
icon
lang
permission
tag
title
onClick
onClose
onError
onShow
on
Constructors
Notification
Methods
close
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DomName('Notification')
Experimental()
Extends
Object
EventTarget
Notification
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
bool
supported
read-only
Checks if this type is supported on the current platform.
Static Methods
requestPermission
(
) →
Future
<
String
>
Properties
String
body
read-only
String
dir
read-only
String
icon
read-only
String
lang
read-only
String
permission
read-only
String
tag
read-only
String
title
read-only
Stream
<
Event
>
onClick
read-only
Stream of click events handled by this [Notification].
Stream
<
Event
>
onClose
read-only
Stream of close events handled by this [Notification].
Stream
<
Event
>
onError
read-only
Stream of error events handled by this [Notification].
Stream
<
Event
>
onShow
read-only
Stream of show events handled by this [Notification].
Events
on
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.
Constructors
Notification
(
String
title
, {
String
dir
:
null
,
String
body
:
null
,
String
lang
:
null
,
String
tag
:
null
,
String
icon
:
null
})
Methods
close
(
) →
void
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited