copyWith method

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

Implementation

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