showNotification method

Future<NotificationEvent> showNotification(
  1. String title, [
  2. ShowNotificationOptions? options
])

Creates a notification on an active service worker.

Implementation

Future<NotificationEvent> showNotification(String title,
    [ShowNotificationOptions? options]) {
  List args = [title];
  if (options != null) args.add(options);
  return promiseToFuture<Object, NotificationEvent>(
      _callMethod(_delegate, 'showNotification', args), NotificationEvent._);
}