copyWith method
ScoreDefinition
copyWith({
- Clef? clef,
- KeySignature? keySignature,
- TimeSignature? timeSignature,
- TempoMark? tempo,
- Dynamic? dynamic,
- int? defaultStaffLines,
- bool? accidentalsAbove,
- 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,
);
}