copyWith method

DocxExportOptions copyWith({
  1. bool? includeSpeakers,
  2. bool? includeTimestamps,
  3. String? format,
  4. dynamic segmentOnSilenceLongerThanS,
  5. dynamic maxSegmentDurationS,
  6. dynamic maxSegmentChars,
})

Implementation

DocxExportOptions copyWith(
    {bool? includeSpeakers,
    bool? includeTimestamps,
    String? format,
    dynamic segmentOnSilenceLongerThanS,
    dynamic maxSegmentDurationS,
    dynamic maxSegmentChars}) {
  return DocxExportOptions(
      includeSpeakers: includeSpeakers ?? this.includeSpeakers,
      includeTimestamps: includeTimestamps ?? this.includeTimestamps,
      format: format ?? this.format,
      segmentOnSilenceLongerThanS:
          segmentOnSilenceLongerThanS ?? this.segmentOnSilenceLongerThanS,
      maxSegmentDurationS: maxSegmentDurationS ?? this.maxSegmentDurationS,
      maxSegmentChars: maxSegmentChars ?? this.maxSegmentChars);
}