copyWith method
ScoreRound
copyWith({ - double? speed,
- Set<int>? hiddenMeasures,
- bool? listenFirst,
- Set<String>? appNotes,
- Set<String>? hiddenNotes,
- PlayMode? mode,
- bool? rewindOnError,
- bool? replayOnMiss,
- List<double>? repeatSpeeds,
- bool? repeatWithoutWait,
- List<ChordDemand>? chordDemands,
- List<ChordTargetNote>? chordReference,
- EchoPlan? echo,
- bool? stableIds,
})
Implementation
ScoreRound copyWith({
double? speed,
Set<int>? hiddenMeasures,
bool? listenFirst,
Set<String>? appNotes,
Set<String>? hiddenNotes,
PlayMode? mode,
bool? rewindOnError,
bool? replayOnMiss,
List<double>? repeatSpeeds,
bool? repeatWithoutWait,
List<ChordDemand>? chordDemands,
List<ChordTargetNote>? chordReference,
EchoPlan? echo,
bool? stableIds,
}) => ScoreRound(
bytes: bytes,
fileName: fileName,
mode: mode ?? this.mode,
hand: hand,
speed: speed ?? this.speed,
pitches: pitches,
noteIds: noteIds,
measures: measures,
bpm: bpm,
ornaments: ornaments,
freeNotes: freeNotes,
// As marcas de expressão (EX07) saem com a troca de andamento: sem elas o
// staccato, o acento e a ligadura somem quando o aluno muda o andamento.
marks: marks,
groups: groups,
adaptiveWindow: adaptiveWindow,
forgiveSounding: forgiveSounding,
tremoloHeads: tremoloHeads,
transpose: transpose,
keyLabel: keyLabel,
curtain: curtain,
untilNextDownbeat: untilNextDownbeat,
chainLength: chainLength,
step: step,
speedFactor: speedFactor,
hiddenMeasures: hiddenMeasures ?? this.hiddenMeasures,
listenFirst: listenFirst ?? this.listenFirst,
appNotes: appNotes ?? this.appNotes,
hiddenNotes: hiddenNotes ?? this.hiddenNotes,
stableIds: stableIds ?? this.stableIds,
studentRuns: studentRuns,
silentNotes: silentNotes,
rewindOnError: rewindOnError ?? this.rewindOnError,
replayOnMiss: replayOnMiss ?? this.replayOnMiss,
repeatSpeeds: repeatSpeeds ?? this.repeatSpeeds,
repeatWithoutWait: repeatWithoutWait ?? this.repeatWithoutWait,
measureLabels: measureLabels,
chordDemands: chordDemands ?? this.chordDemands,
chordReference: chordReference ?? this.chordReference,
echo: echo ?? this.echo,
);