readBool static method

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

Implementation

static Future<bool?> readBool(String key) async {
  final pref = await SharedPreferences.getInstance();
  return pref.getBool(key);
}