reset method
Resets the field to its initial value.
Implementation
void reset() {
setState(() {
_value = widget.initialValue;
_clearErrorInternal();
});
widget.onReset?.call();
Form.maybeOf(context)?._fieldDidChange();
}
Resets the field to its initial value.
void reset() {
setState(() {
_value = widget.initialValue;
_clearErrorInternal();
});
widget.onReset?.call();
Form.maybeOf(context)?._fieldDidChange();
}