copyWith method

AITranscriberSettings copyWith({
  1. SourceLanguage? sourceLanguage,
  2. TranslationLanguage? translationLanguage,
  3. bool clearTranslationLanguage = false,
  4. bool? showBilingual,
})

Implementation

AITranscriberSettings copyWith({
  SourceLanguage? sourceLanguage,
  TranslationLanguage? translationLanguage,
  bool clearTranslationLanguage = false,
  bool? showBilingual,
}) {
  return AITranscriberSettings(
    sourceLanguage: sourceLanguage ?? this.sourceLanguage,
    translationLanguage: clearTranslationLanguage ? null : (translationLanguage ?? this.translationLanguage),
    showBilingual: showBilingual ?? this.showBilingual,
  );
}