SightExercise constructor

SightExercise({
  1. required SightStep step,
  2. String? tonic,
  3. required List<SightVoice> right,
  4. required List<SightVoice> left,
  5. List<SightDirection> directions = const [],
  6. bool fitStaves = false,
  7. SightTexture? texture,
  8. List<SightHarmonySpan>? harmony,
  9. String? meter,
  10. bool counterpoint = false,
  11. SightForm? form,
  12. List<int> systemBreaks = const [],
  13. Map<int, String> keyChanges = const {},
})

Implementation

SightExercise({
  required this.step,
  String? tonic,
  required this.right,
  required this.left,
  this.directions = const [],
  this.fitStaves = false,
  this.texture,
  this.harmony,
  String? meter,
  this.counterpoint = false,
  this.form,
  this.systemBreaks = const [],
  this.keyChanges = const {},
}) : tonic = tonic ?? step.tonic,
     meter = meter ?? step.timeSignature;