PulseWorkoutReading class

Represents a single sensor reading related to a workout, collected from a wearable device like a smartwatch.

Constructors

PulseWorkoutReading(PulseWorkoutType feature, double value, {int? timestamp})
Constructs a PulseWorkoutReading with the given feature, value, and optional timestamp. If timestamp is not provided, the current time is used.

Properties

feature PulseWorkoutType
The type of workout data this reading represents, such as heart rate, calories, etc.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The timestamp when the reading was recorded. Defaults to the current time if not provided.
final
value double
The numeric value of the reading. The meaning of this value depends on the feature.
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