getBool method

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

Implementation

bool getBool(String name, {bool? defaults}) {
  final result = getBoolOrNull(name, defaults: defaults);
  if (result == null) {
    throw ParsingException(name, null, 'Missing required bool field');
  }
  return result;
}