copyWith method

Customer copyWith({
  1. String? id,
  2. String? email,
  3. String? name,
  4. List<Instrument>? instruments,
  5. 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,
  );
}