clearErrors method

void clearErrors()

clears the error state of the command. This will trigger any listeners especially useful if you use watch_it to watch the errors property. However the prefered way to handle thd errors property is either user registerHandler or listen in initState of a StatefulWidget

Implementation

void clearErrors() {
  _errors.value = null;
  if (_isDisposing) {
    return;
  }
  _errors.notifyListeners();
}