IntervalStep class
Represents an interval step
Constructors
- IntervalStep({required IntervalStepPurpose purpose, WorkoutGoal? goal, WorkoutStep? step, WorkoutAlert? alert})
- Creates a new interval step
Properties
- alert → WorkoutAlert?
-
The alert of the step (optional)
Either goal or alert must be provided, but not both
final
- goal → WorkoutGoal?
-
The goal of the step (optional)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- purpose → IntervalStepPurpose
-
The purpose of the step
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → WorkoutStep?
-
The step of the workout (optional)
Either goal or step must be provided, but not both
step is useful for adding a custom display name to the step
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the interval step to a JSON object
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → IntervalStep - Creates a new interval step from a JSON object