clearError method

void clearError()

Clears any error that was set

Implementation

void clearError() {
  state = null;
}