reset method
Reset field value to initial value
Also reset custom error text if exists, and set isDirty to false
.
Implementation
@override
/// Reset field value to initial value
///
/// Also reset custom error text if exists, and set [isDirty] to `false`.
void reset() {
super.reset();
didChange(initialValue);
_dirty = false;
if (_customErrorText != null) {
setState(() => _customErrorText = null);
}
}