getBool static method

Future<bool> getBool(
  1. String key,
  2. bool value
)

Implementation

static Future<bool> getBool(String key, bool value) async {
  await prepareSp();
  return prefs!.getBool(key) ?? value;
}