set method

dynamic set(
  1. String id,
  2. dynamic value
)

Implementation

dynamic set(String id, dynamic value) {
  return fields.singleWhere((e) => e.id == id).updateValue(value);
}