operator [] method
Implementation
operator [](String fieldName) {
final field = value.fields.firstWhere(
(field) => field.name == fieldName,
orElse: () => throw ArgumentError('Unknown field $fieldName'),
);
return field.value;
}
operator [](String fieldName) {
final field = value.fields.firstWhere(
(field) => field.name == fieldName,
orElse: () => throw ArgumentError('Unknown field $fieldName'),
);
return field.value;
}