clear method

Future<bool> clear(
  1. String notificationId
)

Clears the specified notification. |notificationId|: The id of the notification to be cleared. This is returned by notifications.create method. |callback|: Called to indicate whether a matching notification existed.

The callback is required before Chrome 42.

Implementation

Future<bool> clear(String notificationId) async {
  var $res = await promiseToFuture<bool>(
      $js.chrome.notifications.clear(notificationId));
  return $res;
}