getPermissionLevel method

Future<PermissionLevel> getPermissionLevel()

Retrieves whether the user has enabled notifications from this app or extension. |callback|: Returns the current permission level.

Implementation

Future<PermissionLevel> getPermissionLevel() async {
  var $res = await promiseToFuture<$js.PermissionLevel>(
      $js.chrome.notifications.getPermissionLevel());
  return PermissionLevel.fromJS($res);
}