has method

Future<bool> has(
  1. PermissionType type
)

Checks if permission is granted or limited.

Implementation

Future<bool> has(PermissionType type) async => switch (await check(type)) {
  PermissionStatus.granted || PermissionStatus.limited => true,
  _ => false,
};