getBool static method

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

Returns a bool value associated with the given key, or defaultValue if the key is not found.

Implementation

static bool getBool(String key, {bool defaultValue = false}) =>
    _instance.getBool(key) ?? defaultValue;