hasPermission method
Implementation
Future<bool> hasPermission() async {
try {
final perm = html.Notification.permission;
return (perm == "granted");
} catch (e) {
printDebug("Failed to query notifications permission");
printDebug(e);
return false;
}
}