reset method

  1. @mustCallSuper
void reset()
inherited

reset field

  1. clear validation
  2. set value to initialValue

Implementation

@mustCallSuper
void reset() {
  setState(() {
    _validateGen++;
    _latestSuccessfulValidationValue = null;
    _hasInteractedByUser = false;
    _status = _status._copyWith(
        validation: FormeOptional(_initialValidation),
        value: FormeOptional(initialValue));
  });
  _fieldChange();
}