isNotificationPermissionGranted static method

Future<bool> isNotificationPermissionGranted()

Implementation

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