copyWith method
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,
);
}