RecordMetrics class Sensor Data Source

Provides performance metrics for a recorded activity, including distance, elevation gain, and average speed.

Constructors

RecordMetrics.new({double distanceMeters = 0.0, double elevationGainMeters = 0.0, double avgSpeedMps = 0.0})
Creates a RecordMetrics instance.
RecordMetrics.fromJson(Map<String, dynamic> json)
factory

Properties

avgSpeedMps double
The average speed in meters per second.
getter/setter pair
distanceMeters double
The total distance traveled in meters.
getter/setter pair
elevationGainMeters double
The total elevation gain in meters.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
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>
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant RecordMetrics other) bool
The equality operator.
override