getPermissionLevel method
Retrieves whether the user has enabled notifications from this app or extension. |Returns|: Returns a Promise which resolves with the current permission level.
Implementation
Future<PermissionLevel> getPermissionLevel() async {
var $res = await $js.chrome.notifications.getPermissionLevel().toDart;
return PermissionLevel.fromJS($res);
}