isGranted static method Null safety

Future<bool> isGranted(
  1. Permissions permission
)

returns true if permission is granted, otherwise return false

Implementation

static Future<bool> isGranted(Permissions permission) async {
  return (await getPermissionResult(permission)) == 1;
}