copyWith method

ChordMarks copyWith({
  1. ValueGetter<String?>? chordNote,
  2. Set<int>? wrongKeys,
  3. Set<int>? flashKeys,
  4. Set<int>? revealKeys,
})

Implementation

ChordMarks copyWith({
  ValueGetter<String?>? chordNote,
  Set<int>? wrongKeys,
  Set<int>? flashKeys,
  Set<int>? revealKeys,
}) => ChordMarks(
  chordNote: chordNote != null ? chordNote() : this.chordNote,
  wrongKeys: wrongKeys ?? this.wrongKeys,
  flashKeys: flashKeys ?? this.flashKeys,
  revealKeys: revealKeys ?? this.revealKeys,
);