getBool static method

bool getBool(
  1. String key, [
  2. bool? defValue
])

Implementation

static bool getBool(String key, [bool? defValue]) {
  return instance.getBool(key) ?? defValue ?? true;
}