IntervalStep constructor
IntervalStep({
- required IntervalStepPurpose purpose,
- WorkoutGoal? goal,
- WorkoutStep? step,
- WorkoutAlert? alert,
Creates a new interval step
Implementation
IntervalStep({
required this.purpose,
this.goal,
this.step,
this.alert,
}) : assert(
(goal != null) != (step != null),
'Either goal or step must be provided, but not both',
);