JSNotificationOptions class

Implemented types

Constructors

JSNotificationOptions({List<JSNotificationAction>? actions, String? badge, String? body, Map<String, dynamic>? data, JSNotificationDirection? dir, String? icon, String? image, String? lang, bool? renotify, bool? requireInteraction, bool? silent, String? tag, int? timestamp, List<int>? vibrate})

Properties

actions → List<JSNotificationAction>?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions
final
badge → String?
URL of the monochrome badge image (not a number — for numeric app badges see the separate Badging API, navigator.setAppBadge).
final
body → String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/body
final
data → Map<String, dynamic>?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/data
final
dir → JSNotificationDirection?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir
final
hashCode → int
The hash code for this object.
no setterinherited
icon → String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon
final
image → String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/image
final
lang → String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang
final
renotify → bool?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/renotify
final
requireInteraction → bool?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
silent → bool?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent
final
tag → String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag
final
timestamp → int?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/timestamp
final
vibrate → List<int>?
Vibration pattern: alternating vibrate/pause durations in milliseconds, e.g. [200, 100, 200].
final

Methods

copyWith({List<JSNotificationAction>? actions, String? badge, String? body, Map<String, dynamic>? data, JSNotificationDirection? dir, String? icon, String? image, String? lang, bool? renotify, bool? requireInteraction, bool? silent, String? tag, int? timestamp, List<int>? vibrate}) → JSNotificationOptions
copyWithSelf({JSNotificationOptions? options}) → JSNotificationOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited