getBool method

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

Implementation

Future<bool> getBool(String key, bool def) async {
  final SharedPreferences prefs = await _prefs;
  return prefs.getBool(key) ?? def;
}