Dart API Reference
dart:html
Notification
Notification
class
Annotations
DomName('Notification')
Experimental()
Extends
Object
EventTarget
Notification
Constructors
Notification
(
String
title
, {
String
dir
:
null
,
String
body
:
null
,
String
lang
:
null
,
String
tag
:
null
,
String
icon
:
null
})
Constants
clickEvent
=
const
EventStreamProvider
<
Event
>
('click')
Static factory designed to expose click events to event handlers that are not necessarily instances of
Notification
.
closeEvent
=
const
EventStreamProvider
<
Event
>
('close')
Static factory designed to expose close events to event handlers that are not necessarily instances of
Notification
.
errorEvent
=
const
EventStreamProvider
<
Event
>
('error')
Static factory designed to expose error events to event handlers that are not necessarily instances of
Notification
.
showEvent
=
const
EventStreamProvider
<
Event
>
('show')
Static factory designed to expose show events to event handlers that are not necessarily instances of
Notification
.
Static Properties
supported
bool
read-only
Static Methods
requestPermission
(
) →
Future
<
String
>
Instance Properties
body
String
read-only
dir
String
read-only
icon
String
read-only
lang
String
read-only
permission
String
read-only
tag
String
read-only
title
String
read-only
onClick
Stream
<
Event
>
read-only
onClose
Stream
<
Event
>
read-only
onError
Stream
<
Event
>
read-only
onShow
Stream
<
Event
>
read-only
on
Events
Inherited
read-only
Instance 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