copyWith method

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

Implementation

DataSource copyWith({
  File? file,
  String? source,
  String? package,
  DataSourceType? type,
  Map<String, String>? httpHeaders,
}) {
  return DataSource(
    file: file ?? this.file,
    source: source ?? this.source,
    type: type ?? this.type,
    package: package ?? this.package,
    httpHeaders: httpHeaders ?? this.httpHeaders,
  );
}