clearError method

void clearError()

Clears validation error.

Implementation

void clearError() {
  valid = true;
  error = null;
}