ServiceWorkerManager constructor
ServiceWorkerManager({
- Consumer<
NotificationActionResult> ? onNotificationTap, - Consumer<
NotificationActionResult> ? onNotificationAction, - Consumer<
NotificationActionResult> ? onNotificationDismiss, - required String scopeUrl,
Implementation
ServiceWorkerManager(
{this.onNotificationTap,
this.onNotificationAction,
this.onNotificationDismiss,
required String scopeUrl}) {
_scope = scopeUrl;
_notificationApi = interop.NotificationsAPI.instance;
_setupServiceWorker();
}