Score.singleStaff constructor
Factory: Create a simple single-staff score
Implementation
factory Score.singleStaff(
Staff staff, {
String? title,
String? composer,
}) {
return Score(
title: title,
composer: composer,
staffGroups: [
StaffGroup(
staves: [staff],
bracket: BracketType.none,
),
],
);
}