DataSource constructor

DataSource({
  1. File? file,
  2. String? source,
  3. required DataSourceType type,
  4. String? package,
  5. Map<String, String>? httpHeaders,
})

Implementation

DataSource({
  this.file,
  this.source,
  required this.type,
  this.package,
  this.httpHeaders,
}) : assert((type == DataSourceType.file && file != null) || source != null);