getBool method

bool getBool(
  1. int i
)

Returns the boolean value of the field at index i. If the field is not a valid boolean value will return false.

Implementation

bool getBool(int i) {
  final field = getField(i);
  final value = _booleans[field];
  if (value == null) error = 'invalid boolean value: $field';
  return value ?? false;
}