ServiceWorkerManager constructor

ServiceWorkerManager({
  1. Consumer<NotificationActionResult>? onNotificationTap,
  2. Consumer<NotificationActionResult>? onNotificationAction,
  3. Consumer<NotificationActionResult>? onNotificationDismiss,
  4. required String scopeUrl,
})

Implementation

ServiceWorkerManager(
    {this.onNotificationTap,
    this.onNotificationAction,
    this.onNotificationDismiss,
    required String scopeUrl}) {
  _scope = scopeUrl;
  _notificationApi = interop.NotificationsAPI.instance;
  _setupServiceWorker();
}