isDenied static method Null safety

Future<bool> isDenied(
  1. Permissions permission
)

returns true if permission is temporary or permanently denied, otherwise returns false.

Implementation

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