WebpushNotification extension type

Represents the WebPush-specific notification options that can be included in {@link WebpushConfig}. This supports most of the standard options as defined in the Web Notification {@link https://developer.mozilla.org/en-US/docs/Web/API/notification/Notification | specification}.

on
Implemented types
Available extensions

Constructors

WebpushNotification({String? title, JSArray<WebpushNotificationActions>? actions, String? badge, String? body, JSAny? data, String? dir, String? icon, String? image, String? lang, bool? renotify, bool? requireInteraction, bool? silent, String? tag, num? timestamp, JSAny? vibrate})
Constructor

Properties

actions JSArray<WebpushNotificationActions>?
An array of notification actions representing the actions available to the user when the notification is presented.
no setter
badge String?
URL of the image used to represent the notification when there is not enough space to display the notification itself.
no setter
body String?
Body text of the notification.
no setter
data JSAny?
Arbitrary data that you want associated with the notification. This can be of any data type.
no setter
dir String?
The direction in which to display the notification. Must be one of auto, ltr or rtl.
no setter
hashCode int
The hash code for this object.
no setterinherited
icon String?
URL to the notification icon.
no setter
image String?
URL of an image to be displayed in the notification.
no setter
lang String?
The notification's language as a BCP 47 language tag.
no setter
renotify bool?
A boolean specifying whether the user should be notified after a new notification replaces an old one. Defaults to false.
no setter
requireInteraction bool?
Indicates that a notification should remain active until the user clicks or dismisses it, rather than closing automatically. Defaults to false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silent bool?
A boolean specifying whether the notification should be silent. Defaults to false.
no setter
tag String?
An identifying tag for the notification.
no setter
timestamp num?
Timestamp of the notification. Refer to https://developer.mozilla.org/en-US/docs/Web/API/notification/timestamp for details.
no setter
title String?
Title text of the notification.
no setter
vibrate JSAny?
A vibration pattern for the device's vibration hardware to emit when the notification fires.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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