copyWith method

ScoreRound copyWith({
  1. double? speed,
  2. Set<int>? hiddenMeasures,
  3. bool? listenFirst,
  4. Set<String>? appNotes,
  5. Set<String>? hiddenNotes,
  6. PlayMode? mode,
  7. bool? rewindOnError,
  8. bool? replayOnMiss,
  9. List<double>? repeatSpeeds,
  10. bool? repeatWithoutWait,
  11. List<ChordDemand>? chordDemands,
  12. List<ChordTargetNote>? chordReference,
  13. EchoPlan? echo,
  14. 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,
);