LogMetrics class Sensor Data Source

Provides metrics about a recorded log, such as distance, elevation gain, and average speed.

These metrics are typically retrieved from a LogMetadata instance and represent summary information for a saved recording.

See also:

Implemented types

Constructors

LogMetrics({required double distanceMeters, required double elevationGainMeters, required double avgSpeedMps, double maxSpeedMps = 0.0})
Creates a LogMetrics object with the specified metric values.

Properties

avgSpeedMps → double
The average speed, in meters per second.
final
distanceMeters → double
The total distance traveled, in meters.
final
elevationGainMeters → double
The total elevation gain, in meters.
final
hashCode → int
The hash code for this object.
no setteroverride
maxSpeedMps → double
The maximum speed, in meters per second.
final
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 ==(covariant LogMetrics other) → bool
The equality operator.
override