WebNotification class
Class that represents the data of a web notification.
This corresponds to the properties of the ICoreWebView2Notification interface.
Constructors
Properties
- badgeUri ↔ WebUri?
-
The badge URI.
getter/setter pair
- body ↔ String?
-
The body text of the notification.
getter/setter pair
- bodyImageUri ↔ WebUri?
-
The body image URI.
getter/setter pair
- direction ↔ TextDirectionKind?
-
The text direction.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconUri ↔ WebUri?
-
The icon URI.
getter/setter pair
- isSilent ↔ bool?
-
Whether the notification is silent.
getter/setter pair
- language ↔ String?
-
The language of the notification.
getter/setter pair
- requiresInteraction ↔ bool?
-
Whether the notification requires interaction.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldRenotify ↔ bool?
-
Whether the notification should renotify.
getter/setter pair
- tag ↔ String?
-
The tag of the notification.
getter/setter pair
- timestamp ↔ double?
-
The timestamp of the notification, in milliseconds since UNIX epoch.
getter/setter pair
- title ↔ String?
-
The title of the notification.
getter/setter pair
-
vibrationPattern
↔ List<
int> ? -
The vibration pattern for devices with vibration hardware to emit.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts instance to a map.
-
toMap(
{EnumMethod? enumMethod}) → Map< String, dynamic> - Converts instance to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map, {EnumMethod? enumMethod}) → WebNotification? - Gets a possible WebNotification instance from a Map value.