getBool static method

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

get bool.

Implementation

static bool getBool(String key, {bool defValue = false}) {
  return _prefs.getBool(key) ?? defValue;
}