queryBool method

bool? queryBool(
  1. String name
)

Exactly true or false; null when missing. All other values, including empty and repeated values, throw FormatException.

Implementation

bool? queryBool(String name) {
  final value = _singleQuery(name);
  if (value == null) return null;
  if (value == 'true') return true;
  if (value == 'false') return false;
  throw FormatException('Expected a boolean query: $name');
}