startNewSession method

void startNewSession()

Allow the user to continue the conversation in a new session. Keeps existing messages visible; next sendMessage creates a new session.

Implementation

void startNewSession() {
  _sessionId = null;
  _sessionStartedAt = null;
  _endedSessionId = null;
  state = state.copyWith(isReadOnly: false);
}