copyWith method

DataSource copyWith({
  1. File? file,
  2. String? source,
  3. String? package,
  4. DataSourceType? type,
  5. VideoFormat? formatHint,
  6. Map<String, String>? httpHeaders,
  7. 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,
  );
}