ServiceWorkerManager class

Constructors

ServiceWorkerManager.new({Consumer<NotificationActionResult>? onNotificationTap, Consumer<NotificationActionResult>? onNotificationAction, Consumer<NotificationActionResult>? onNotificationDismiss, required String scopeUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
onNotificationAction Consumer<NotificationActionResult>?
getter/setter pair
onNotificationDismiss Consumer<NotificationActionResult>?
getter/setter pair
onNotificationTap Consumer<NotificationActionResult>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAllNotifications() Future<void>
cancelNotification(String id) Future<void>
dispose() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAction({String? id, required NotificationAction action, Map<String, dynamic>? data}) Future<void>
postMessage(ServiceWorkerPayload payload) Future<void>
postNotification(JSNotification notification, {Map<String, dynamic>? data}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

platformLimitDefault → const int
platformLimitLinux → const int
platformLimitMac → const int
platformLimitWin → const int
tag → const String