TranslationSettingsModalOptions constructor

TranslationSettingsModalOptions({
  1. required bool isVisible,
  2. required VoidCallback onClose,
  3. TranslationRoomConfig? translationConfig,
  4. required String member,
  5. required String islevel,
  6. String? audioProducerId,
  7. required List<Participant> participants,
  8. required ListenerTranslationPreferences? listenerTranslationPreferences,
  9. required Map<String, String>? listenerTranslationOverrides,
  10. required Map<String, TranslationMeta>? translationProducerMap,
  11. required Map<String, dynamic>? speakerTranslationStates,
  12. Set<String>? translationSubscriptions,
  13. required dynamic updateListenerTranslationPreferences(
    1. ListenerTranslationPreferences
    ),
  14. required dynamic updateListenerTranslationOverrides(
    1. Map<String, String>
    ),
  15. required dynamic updateTranslationProducerMap(
    1. Map<String, TranslationMeta>
    ),
  16. required dynamic updateSpeakerTranslationStates(
    1. Map<String, dynamic>
    ),
  17. Socket? socket,
  18. required String roomName,
  19. ShowAlert? showAlert,
  20. String? mySpokenLanguage,
  21. bool? mySpokenLanguageEnabled,
  22. String? myDefaultOutputLanguage,
  23. String? myDefaultListenLanguage,
  24. Map<String, String>? listenPreferences,
  25. dynamic updateMySpokenLanguage(
    1. String
    )?,
  26. dynamic updateMySpokenLanguageEnabled(
    1. bool
    )?,
  27. dynamic updateMyDefaultOutputLanguage(
    1. String
    )?,
  28. dynamic updateMyDefaultListenLanguage(
    1. String?
    )?,
  29. dynamic updateListenPreferences(
    1. Map<String, String>
    )?,
  30. bool? showSubtitlesOnCards,
  31. dynamic updateShowSubtitlesOnCards(
    1. bool
    )?,
  32. bool isPersonalTranslation = false,
  33. List<Map<String, dynamic>>? userVoiceClones,
  34. ModalRenderMode renderMode = ModalRenderMode.modal,
})

Implementation

TranslationSettingsModalOptions({
  required this.isVisible,
  required this.onClose,
  this.translationConfig,
  required this.member,
  required this.islevel,
  this.audioProducerId,
  required this.participants,
  required this.listenerTranslationPreferences,
  required this.listenerTranslationOverrides,
  required this.translationProducerMap,
  required this.speakerTranslationStates,
  this.translationSubscriptions,
  required this.updateListenerTranslationPreferences,
  required this.updateListenerTranslationOverrides,
  required this.updateTranslationProducerMap,
  required this.updateSpeakerTranslationStates,
  this.socket,
  required this.roomName,
  this.showAlert,
  this.mySpokenLanguage,
  this.mySpokenLanguageEnabled,
  this.myDefaultOutputLanguage,
  this.myDefaultListenLanguage,
  this.listenPreferences,
  this.updateMySpokenLanguage,
  this.updateMySpokenLanguageEnabled,
  this.updateMyDefaultOutputLanguage,
  this.updateMyDefaultListenLanguage,
  this.updateListenPreferences,
  this.showSubtitlesOnCards,
  this.updateShowSubtitlesOnCards,
  this.isPersonalTranslation = false,
  this.userVoiceClones,
  this.renderMode = ModalRenderMode.modal,
});