clearErrors method Null safety

void clearErrors()

Clears all the errors

Implementation

void clearErrors() {
  _errorStates.clear();
}