setLocalPermission static method

Future<bool> setLocalPermission(
  1. int value
)

Implementation

static Future<bool> setLocalPermission(int value) async {
  Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
  SharedPreferences prefs = await _prefs;
  return await prefs.setBool("permission$value", true);
}