getAsBool method

bool? getAsBool(
  1. K key, {
  2. bool? defaultValue,
  3. bool ignoreCase = false,
})

Gets a key value parsing as bool.

  • def is the default value if the value is invalid.

Implementation

bool? getAsBool(K key, {bool? defaultValue, bool ignoreCase = false}) =>
    getParsed(key, TypeParser.parseBool,
        defaultValue: defaultValue, ignoreCase: ignoreCase);