HanonCellExercise constructor
HanonCellExercise({ - required int number,
- required HanonCell up,
- HanonCell? down,
- HanonCell? upFirst,
- HanonCell? upLast,
- HanonCell? downLast,
- Map<int, HanonCell> upAt = const {},
- Map<int, HanonCell> downAt = const {},
- int upMeasures = 14,
- int downMeasures = 14,
- int downTop = 18,
- HanonSource source = HanonSource.checked,
- ({int max, int min}) mm = hanonDefaultMm,
- String time = '2/4',
- int rightStart = 0,
- int leftStart = -7,
- List<int>? finalRight,
- List<int>? finalLeft,
- int? finalFingerRight,
- int? finalFingerLeft,
- HanonShown? shownUp,
- 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;