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

Implementation

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