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