isNotificationPermissionGranted static method
Implementation
static Future<bool> isNotificationPermissionGranted() async {
var permissionStatus = await Permission.notification.status;
return isNotificationPermissionGrantedSync(permissionStatus);
}