copyWithWrapped method

HtmlExportOptions copyWithWrapped({
  1. Wrapped<bool?>? includeSpeakers,
  2. Wrapped<bool?>? includeTimestamps,
  3. Wrapped<String>? format,
  4. Wrapped? segmentOnSilenceLongerThanS,
  5. Wrapped? maxSegmentDurationS,
  6. Wrapped? maxSegmentChars,
})

Implementation

HtmlExportOptions copyWithWrapped(
    {Wrapped<bool?>? includeSpeakers,
    Wrapped<bool?>? includeTimestamps,
    Wrapped<String>? format,
    Wrapped<dynamic>? segmentOnSilenceLongerThanS,
    Wrapped<dynamic>? maxSegmentDurationS,
    Wrapped<dynamic>? maxSegmentChars}) {
  return HtmlExportOptions(
      includeSpeakers: (includeSpeakers != null
          ? includeSpeakers.value
          : this.includeSpeakers),
      includeTimestamps: (includeTimestamps != null
          ? includeTimestamps.value
          : this.includeTimestamps),
      format: (format != null ? format.value : this.format),
      segmentOnSilenceLongerThanS: (segmentOnSilenceLongerThanS != null
          ? segmentOnSilenceLongerThanS.value
          : this.segmentOnSilenceLongerThanS),
      maxSegmentDurationS: (maxSegmentDurationS != null
          ? maxSegmentDurationS.value
          : this.maxSegmentDurationS),
      maxSegmentChars: (maxSegmentChars != null
          ? maxSegmentChars.value
          : this.maxSegmentChars));
}