HKHeartRate class
Represents heart rate data from HealthKit.
Wraps an HKQuantitySample containing the heart rate measurement and extends HealthKitData to provide a standardized interface.
- Inheritance
-
- Object
- HealthKitData
- HKHeartRate
- Available extensions
Constructors
- HKHeartRate(HKQuantitySample data)
- Creates a new heart rate record with the specified sample data.
Properties
- data ↔ HKQuantitySample
-
The underlying quantity sample containing the heart rate measurement.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- healthMetric → HealthKitHealthMetric
-
The health metric type for this data.
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> -
toOpenMHealth(
) → List< OpenMHealthSchema> -
Available on HealthKitData, provided by the OpenMHealthConverter extension
Converts this HealthKitData instance to OpenMHealth schema format. -
toOpenMHealthHeartRate(
) → List< OpenMHealthHeartRate> -
Available on HKHeartRate, provided by the OpenMHealthHeartRateConverter extension
Converts this HKHeartRate instance to a list of OpenMHealthHeartRate objects. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited