copyWith method

ScoreDefinition copyWith({
  1. Clef? clef,
  2. KeySignature? keySignature,
  3. TimeSignature? timeSignature,
  4. TempoMark? tempo,
  5. Dynamic? dynamic,
  6. int? defaultStaffLines,
  7. bool? accidentalsAbove,
  8. String? xmlId,
})

Implementation

ScoreDefinition copyWith({
  Clef? clef,
  KeySignature? keySignature,
  TimeSignature? timeSignature,
  TempoMark? tempo,
  Dynamic? dynamic,
  int? defaultStaffLines,
  bool? accidentalsAbove,
  String? xmlId,
}) {
  return ScoreDefinition(
    clef: clef ?? this.clef,
    keySignature: keySignature ?? this.keySignature,
    timeSignature: timeSignature ?? this.timeSignature,
    tempo: tempo ?? this.tempo,
    dynamic: dynamic ?? this.dynamic,
    defaultStaffLines: defaultStaffLines ?? this.defaultStaffLines,
    accidentalsAbove: accidentalsAbove ?? this.accidentalsAbove,
    xmlId: xmlId ?? this.xmlId,
  );
}