ActivityMetrics class Activity Store
Summary metrics of an Activity.
- Annotations
Constructors
- ActivityMetrics({double distanceMeters = 0.0, double elevationGainMeters = 0.0, double avgSpeedMps = 0.0, double averageHeartRate = -1.0, double caloriesBurned = -1.0})
- Creates an ActivityMetrics.
Properties
- averageHeartRate ↔ double
-
The average heart rate in beats per minute, or -1 when not measured.
getter/setter pair
- avgSpeedMps ↔ double
-
The average speed in meters per second.
getter/setter pair
- caloriesBurned ↔ double
-
The burned calories in kilocalories, or -1 when not measured.
getter/setter pair
- distanceMeters ↔ double
-
The distance in meters.
getter/setter pair
- elevationGainMeters ↔ double
-
The elevation gain in meters.
getter/setter pair
- hasAverageHeartRate → bool
-
Whether averageHeartRate was measured.
no setter
- hasCaloriesBurned → bool
-
Whether caloriesBurned was measured.
no setter
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited