setValue method Null safety
- T? value
protected">@protected
Sets the value associated with this form field.
This method should only be called by subclasses that need to update
the form field value due to state changes identified during the widget
build phase, when calling setState
is prohibited. In all other cases,
the value should be set by a call to didChange, which ensures that
setState
is called.
Implementation
@protected
// ignore: use_setters_to_change_properties, (API predates enforcing the lint)
void setValue(T? value) {
_value = value;
}