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})
Creates a LogMetrics object with the specified metric values.
LogMetrics.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create a LogMetrics instance.
factory

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
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