copyWith method
HlsDownloadOptions
copyWith({
- String? downloadId,
- int? retryAttempts,
- Map<
String, String> ? customHeaders, - HlsVariantSelection? variantSelection,
- bool? combineSegments,
- bool? deleteSegmentsAfterCombine,
- bool? keepTempFilesOnFailure,
- String? outputFileExtension,
- String? outputDirectoryPath,
- BatchProgressCallback? batchProgressCallback,
- HlsLogLevel? logLevel,
- HlsLogCallback? logCallback,
Implementation
HlsDownloadOptions copyWith({
String? downloadId,
int? retryAttempts,
Map<String, String>? customHeaders,
HlsVariantSelection? variantSelection,
bool? combineSegments,
bool? deleteSegmentsAfterCombine,
bool? keepTempFilesOnFailure,
String? outputFileExtension,
String? outputDirectoryPath,
BatchProgressCallback? batchProgressCallback,
HlsLogLevel? logLevel,
HlsLogCallback? logCallback,
}) {
return HlsDownloadOptions(
downloadId: downloadId ?? this.downloadId,
retryAttempts: retryAttempts ?? this.retryAttempts,
customHeaders: customHeaders ?? this.customHeaders,
variantSelection: variantSelection ?? this.variantSelection,
combineSegments: combineSegments ?? this.combineSegments,
deleteSegmentsAfterCombine:
deleteSegmentsAfterCombine ?? this.deleteSegmentsAfterCombine,
keepTempFilesOnFailure:
keepTempFilesOnFailure ?? this.keepTempFilesOnFailure,
outputFileExtension: outputFileExtension ?? this.outputFileExtension,
outputDirectoryPath: outputDirectoryPath ?? this.outputDirectoryPath,
batchProgressCallback:
batchProgressCallback ?? this.batchProgressCallback,
logLevel: logLevel ?? this.logLevel,
logCallback: logCallback ?? this.logCallback,
);
}