DataSource constructor
DataSource({
- File? file,
- String? source,
- required DataSourceType type,
- VideoFormat? formatHint,
- String? package,
- Future<
ClosedCaptionFile> ? closedCaptionFile, - Map<
String, String> ? httpHeaders,
Implementation
DataSource({
this.file,
this.source,
required this.type,
this.formatHint,
this.package,
this.closedCaptionFile,
this.httpHeaders,
}) : assert((type == DataSourceType.file && file != null) || source != null);