DataSource constructor

DataSource({
  1. File? file,
  2. String? source,
  3. required DataSourceType type,
  4. VideoFormat? formatHint,
  5. String? package,
  6. Future<ClosedCaptionFile>? closedCaptionFile,
  7. 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);