getBool static method

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

Implementation

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