getBool method

bool getBool(
  1. String name, {
  2. bool? fallback,
})

Accepts true/1 and false/0 (case-insensitive). Throws AssertionError if not found and no fallback given. Throws FormatException if found but not parseable.

Implementation

bool getBool(String name, {bool? fallback}) =>
    _getTyped(name, fallback, _parseBool);