shouldRequestPermission method

Future<bool> shouldRequestPermission(
  1. Permission permission
)

Implementation

Future<bool> shouldRequestPermission(Permission permission) async {
  final status = await permission.status;
  return [PermissionStatus.denied, PermissionStatus.permanentlyDenied].contains(status);
}