update method

Future<bool> update(
  1. String notificationId,
  2. NotificationOptions options
)

Updates an existing notification. |notificationId|: The id of the notification to be updated. This is returned by notifications.create method. |options|: Contents of the notification to update to. |callback|: Called to indicate whether a matching notification existed.

The callback is required before Chrome 42.

Implementation

Future<bool> update(
  String notificationId,
  NotificationOptions options,
) async {
  var $res = await promiseToFuture<bool>($js.chrome.notifications.update(
    notificationId,
    options.toJS,
  ));
  return $res;
}