getBool static method

bool getBool(
  1. String key, {
  2. bool defaultValue = false,
})

🔍 Get a bool value (defaults to false if key doesn't exist).

Implementation

static bool getBool(String key, {bool defaultValue = false}) {
  assert(_prefs != null, 'Call EaseXStorage.init() first!');
  return _prefs!.getBool(key) ?? defaultValue;
}