reset method

void reset ()

Resets the field to its initial value and clears error indication. Also invokes onChanged().

Implementation

void reset() {
  setState(() {
    _errorText = null;
    value = _initialValue;
    if (widget.onChanged != null) {
      widget.onChanged(value);
    }
  });
}