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. |Returns|: Returns a Promise which resolves to indicate whether a matching notification existed.

Implementation

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