beforeSetField method Null safety

void beforeSetField(
  1. FieldInfo fi,
  2. dynamic newValue
)

Called before setting a field.

For repeated fields, this will be called when the list is created. (For example in getField and merge methods.)

Implementation

void beforeSetField(FieldInfo fi, newValue);