Workout class

A workout sample.

Inheritance

Constructors

Workout({required String uuid, required DateTime start, required DateTime end, required SourceRevision sourceRevision, required WorkoutActivityType workoutActivityType, required Duration duration, Map<String, dynamic>? metadata, Device? device, SampleTypeId type = HKSampleTypeIdentifier.workout})
Workout.fromJson(Map<String, dynamic> json)
factory

Properties

device → Device?
The device that collected the sample.
finalinherited
duration → Duration
The duration of the workout.
final
end → DateTime
The end date of the sample.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>?
Additional metadata for the sample.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceRevision → SourceRevision
The source revision of the sample.
finalinherited
start → DateTime
The start date of the sample.
finalinherited
type → SampleTypeId
The type of the sample.
finalinherited
uuid → String
The unique identifier of the sample.
finalinherited
workoutActivityType → WorkoutActivityType
The type of workout.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited