getBool method

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

指定したフィールドの値を真偽値として返す name フィールド名 defaultValue デフォルト値

Implementation

bool getBool(String name, {bool? defaultValue}) {
  if (!_fields.containsKey(name) && defaultValue != null) return defaultValue;
  return _fields[name]! as bool;
}