setValue method
- @protected
@protected
Sets the value associated with this form field.
This method should be 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
void setValue(T value) {
_value = value;
}