shouldShowRationale method

Future<bool> shouldShowRationale(
  1. Permission permission
)

Implementation

Future<bool> shouldShowRationale(Permission permission) async {
  final status = await permission.status;
  final shouldShowRationale = await permission.shouldShowRequestRationale;
  return [PermissionStatus.permanentlyDenied].contains(status) || shouldShowRationale;
}