clearError method

void clearError()

Implementation

void clearError() {
  if (state.hasError) {
    state = state.copyWith(
      status: AuthStatus.unauthenticated,
      error: null,
    );
  }
}