clearError method

void clearError()

Implementation

void clearError() {
  if (state.showError) {
    state = state.copyWith(
      errorMessage: null,
      showError: false,
    );
  }
}