copyWith method

NoteModel copyWith({
  1. String? name,
  2. int? octave,
  3. int? noteIndex,
  4. bool? isFlat,
})

Implementation

NoteModel copyWith({
  String? name,
  int? octave,
  int? noteIndex,
  bool? isFlat,
}) {
  return NoteModel(
    name: name ?? this.name,
    octave: octave ?? this.octave,
    noteIndex: noteIndex ?? this.noteIndex,
    isFlat: isFlat ?? this.isFlat,
  );
}