checkPermissionSetBefore static method

Future<bool> checkPermissionSetBefore(
  1. int value
)

Implementation

static Future<bool> checkPermissionSetBefore(int value) async {
  Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
  SharedPreferences prefs = await _prefs;
  final _hasPermissionSetBefore = prefs.getBool("permission$value");
  return _hasPermissionSetBefore ?? false;
}