operator []= method

void operator []=(
  1. String fieldName,
  2. dynamic value
)

Implementation

void operator []=(String fieldName, dynamic value) {
  fields.firstWhere((field) => field.name == fieldName).value = value;
}