PacerWorkout class

Represents a pacer workout

Inheritance

Constructors

PacerWorkout({required WorkoutActivityType activityType, required WorkoutLocationType location, required double targetValue, required GoalDistanceUnits targetValueUnit, required Duration targetDuration, required GoalTimeUnits targetDurationUnit})
Creates a new pacer workout

Properties

activityType WorkoutActivityType
The activity type of the workout
final
hashCode int
The hash code for this object.
no setterinherited
location WorkoutLocationType
The location type of the workout
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetDuration Duration
The target duration of the workout
final
targetDurationUnit GoalTimeUnits
The unit of the target duration
final
targetValue double
The target value of the workout
final
targetValueUnit GoalDistanceUnits
The unit of the target value
final
workoutType WorkoutType
The type of workout this represents
finalinherited

Methods

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