IntervalStep constructor

IntervalStep({
  1. required IntervalStepPurpose purpose,
  2. WorkoutGoal? goal,
  3. WorkoutStep? step,
  4. 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',
      );