didChange method
void
didChange(
- T value
Updates this field's state to the new value. Useful for responding to child widget changes, e.g. Slider's Slider.onChanged argument.
Triggers the EasyForm.onChanged callback and, if EasyForm.autovalidateMode is EasyAutovalidateMode.always or EasyAutovalidateMode.onUserInteraction, revalidates all the fields of the form.
Implementation
void didChange(T value) {
setState(() {
_value = value;
_hasInteractedByUser = true;
});
EasyForm.maybeOf(context)?._fieldDidChange(this);
}