readBool static method

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

Reads a boolean with a sensible default.

Implementation

static bool readBool(String key, {bool defaultValue = false}) =>
    read<bool>(key, defaultValue: defaultValue) ?? defaultValue;