reset method
Resets the field to its initial value.
Implementation
@override
void reset() {
super.reset();
setValue(initialValue);
if (_customErrorText != null) {
setState(() => _customErrorText = null);
}
widget.onReset?.call();
}
Resets the field to its initial value.
@override
void reset() {
super.reset();
setValue(initialValue);
if (_customErrorText != null) {
setState(() => _customErrorText = null);
}
widget.onReset?.call();
}