copyWith method
Create a copy with modified fields
Implementation
StaffGroup copyWith({
List<Staff>? staves,
BracketType? bracket,
String? name,
String? abbreviation,
bool? connectBarlines,
double? customSpacing,
bool? showNameOnAllSystems,
}) {
return StaffGroup(
staves: staves ?? this.staves,
bracket: bracket ?? this.bracket,
name: name ?? this.name,
abbreviation: abbreviation ?? this.abbreviation,
connectBarlines: connectBarlines ?? this.connectBarlines,
customSpacing: customSpacing ?? this.customSpacing,
showNameOnAllSystems: showNameOnAllSystems ?? this.showNameOnAllSystems,
);
}