copyWith method

DiskConfig copyWith({
  1. String? driver,
  2. String? root,
  3. String? url,
  4. String? visibility,
  5. bool? throw_,
  6. bool? report,
  7. String? directorySeparator,
  8. String? prefix,
  9. bool? readOnly,
  10. Map<String, dynamic>? options,
})

Create a copy with updated values

Implementation

DiskConfig copyWith({
  String? driver,
  String? root,
  String? url,
  String? visibility,
  bool? throw_,
  bool? report,
  String? directorySeparator,
  String? prefix,
  bool? readOnly,
  Map<String, dynamic>? options,
}) {
  return DiskConfig(
    driver: driver ?? this.driver,
    root: root ?? this.root,
    url: url ?? this.url,
    visibility: visibility ?? this.visibility,
    throw_: throw_ ?? this.throw_,
    report: report ?? this.report,
    directorySeparator: directorySeparator ?? this.directorySeparator,
    prefix: prefix ?? this.prefix,
    readOnly: readOnly ?? this.readOnly,
    options: options ?? this.options,
  );
}