WorkoutStep class

Represents a workout step

Constructors

WorkoutStep({required WorkoutGoal goal, WorkoutAlert? alert, String? displayName})
Creates a new workout step

Properties

alert WorkoutAlert?
The alert of the step
final
displayName String?
The display name of the step
final
goal WorkoutGoal
The goal of the step
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the workout 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) WorkoutStep
Creates a new workout step from a JSON object