copyWith method
Customer
copyWith({
- String? id,
- String? email,
- String? name,
- List<
Instrument> ? instruments, - Instrument? defaultInstrument,
Implementation
Customer copyWith({
String? id,
String? email,
String? name,
List<Instrument>? instruments,
Instrument? defaultInstrument,
}) {
return Customer(
id: id ?? this.id,
defaultInstrument: defaultInstrument ?? this.defaultInstrument,
email: email ?? this.email,
name: name ?? this.name,
instruments: instruments ?? this.instruments,
);
}