readBool static method

Future<bool>? readBool(
  1. String key
)

Implementation

static Future<bool>? readBool(String key) async {
  _preferences = await SharedPreferences.getInstance();
  final res = _preferences!.getBool(key);

  return res!;
}