reset method

void reset()

Reset the input to empty.

Implementation

void reset() {
  _runEditFrame(() {
    _beginHistoryAction(_TextInputHistoryAction.reset, breakChain: true);
    _recordUndoSnapshot();
    _replaceValueAndDocument(const <String>[]);
    error = _validate(_value);
    _applyOffsetStateSnapshot(const TextOffsetStateSnapshot(cursorOffset: 0));
    _resetDesiredCol();
    _updateSuggestions();
  });
}