getBool static method

bool? getBool(
  1. String key
)

Implementation

static bool? getBool(String key) {
  final cached = _cache[key];
  if (cached is bool) return cached;
  final value = prefs!.getBool(key) ?? false;
  _cache[key] = value;
  return value;
}