handleTranscriptSelect method

void handleTranscriptSelect(
  1. TranscriptShareResponse selected
)

Handle transcript share response.

Implementation

void handleTranscriptSelect(TranscriptShareResponse selected) {
  switch (selected) {
    case TranscriptShareResponse.share:
      state.value = FeedbackSurveyState.submitting;
      _logEvent('transcript_shared');
      // Simulate submission
      Future.delayed(const Duration(seconds: 1), () {
        state.value = FeedbackSurveyState.submitted;
        _scheduleClose();
      });
    case TranscriptShareResponse.skip:
      _showThanksAndClose();
    case TranscriptShareResponse.dontAskAgain:
      _transcriptShareDismissed = true;
      _showThanksAndClose();
  }
}