staffCount property

int get staffCount

Get total number of staves in the score

Implementation

int get staffCount {
  return staffGroups.fold(0, (sum, group) => sum + group.staves.length);
}