clear method

void clear()

Implementation

void clear() {
  _controller.clear();
  if (mounted && !_isDisposed) {
    setState(() {
      _validationError = null;
    });
  }
  widget.onChanged?.call('');
}