copyWith method

StaffGroup copyWith({
  1. List<Staff>? staves,
  2. BracketType? bracket,
  3. String? name,
  4. String? abbreviation,
  5. bool? connectBarlines,
  6. double? customSpacing,
  7. bool? showNameOnAllSystems,
})

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,
  );
}