Cluster constructor

Cluster({
  1. required Pitch lowestPitch,
  2. required Pitch highestPitch,
  3. Pitch? lowestNote,
  4. Pitch? highestNote,
  5. ClusterType type = ClusterType.chromatic,
  6. String? notation,
  7. bool showBracket = true,
})

Implementation

Cluster({
  required this.lowestPitch,
  required this.highestPitch,
  Pitch? lowestNote,
  Pitch? highestNote,
  this.type = ClusterType.chromatic,
  this.notation,
  this.showBracket = true,
})  : lowestNote = lowestNote ?? lowestPitch,
      highestNote = highestNote ?? highestPitch;