copyWith method
DataSource
copyWith({
- File? file,
- String? source,
- String? package,
- DataSourceType? type,
- VideoFormat? formatHint,
- Map<
String, String> ? httpHeaders, - Future<
ClosedCaptionFile> ? closedCaptionFile,
Implementation
DataSource copyWith({
File? file,
String? source,
String? package,
DataSourceType? type,
VideoFormat? formatHint,
Map<String, String>? httpHeaders,
Future<ClosedCaptionFile>? closedCaptionFile,
}) {
return DataSource(
file: file ?? this.file,
source: source ?? this.source,
type: type ?? this.type,
package: package ?? this.package,
formatHint: formatHint ?? this.formatHint,
httpHeaders: httpHeaders ?? this.httpHeaders,
closedCaptionFile: closedCaptionFile ?? this.closedCaptionFile,
);
}