valueOf<TField> method

TField? valueOf<TField>(
  1. String name,
  2. Map<String, String> group
)

Decodes the value of the Field with name from the query group using the FieldCodec.toValue from Field.codec.

Implementation

TField? valueOf<TField>(String name, Map<String, String> group) {
  final field = fields.firstWhere(
    (field) => field.name == name,
  ) as Field<TField>;

  return field.valueFrom(group);
}