HanonCellExercise constructor

HanonCellExercise({
  1. required int number,
  2. required HanonCell up,
  3. HanonCell? down,
  4. HanonCell? upFirst,
  5. HanonCell? upLast,
  6. HanonCell? downLast,
  7. Map<int, HanonCell> upAt = const {},
  8. Map<int, HanonCell> downAt = const {},
  9. int upMeasures = 14,
  10. int downMeasures = 14,
  11. int downTop = 18,
  12. HanonSource source = HanonSource.checked,
  13. ({int max, int min}) mm = hanonDefaultMm,
  14. String time = '2/4',
  15. int rightStart = 0,
  16. int leftStart = -7,
  17. List<int>? finalRight,
  18. List<int>? finalLeft,
  19. int? finalFingerRight,
  20. int? finalFingerLeft,
  21. HanonShown? shownUp,
  22. HanonShown? shownDown,
})

Implementation

HanonCellExercise({
  required this.number,
  required this.up,
  HanonCell? down,
  this.upFirst,
  this.upLast,
  this.downLast,
  this.upAt = const {},
  this.downAt = const {},
  this.upMeasures = 14,
  this.downMeasures = 14,
  this.downTop = 18,
  this.source = HanonSource.checked,
  this.mm = hanonDefaultMm,
  this.time = '2/4',
  this.rightStart = 0,
  this.leftStart = -7,
  List<int>? finalRight,
  List<int>? finalLeft,
  this.finalFingerRight,
  this.finalFingerLeft,
  HanonShown? shownUp,
  HanonShown? shownDown,
}) : down = down ?? up.mirrored,
     finalRight = finalRight ?? [rightStart],
     finalLeft = finalLeft ?? [leftStart],
     shownUp = shownUp ?? _allThenFirst,
     shownDown = shownDown ?? _allThenFirst;