copyWith method

DriverConfig copyWith({
  1. String? type,
  2. Map<String, Object?>? options,
})

Creates a copy with optional overrides.

Implementation

DriverConfig copyWith({String? type, Map<String, Object?>? options}) {
  return DriverConfig(
    type: type ?? this.type,
    options: options ?? Map<String, Object?>.from(this.options),
  );
}