HealthKitHealthMetric enum

Represents health metrics available through Apple HealthKit.

Each metric corresponds to a specific HealthKit identifier for accessing different types of health data.

Inheritance
Available extensions

Values

heartRate → const HealthKitHealthMetric

Heart rate measurement data. HealthKit identifier: HKQuantityTypeIdentifierHeartRate

const HealthKitHealthMetric(value: "HKQuantityTypeIdentifierHeartRate")
bodyTemperature → const HealthKitHealthMetric

Body temperature measurement data. HealthKit identifier: HKQuantityTypeIdentifierBodyTemperature

const HealthKitHealthMetric(value: "HKQuantityTypeIdentifierBodyTemperature")
heartRateVariability → const HealthKitHealthMetric

Heart rate variability measurement data. HealthKit identifier: HKQuantityTypeIdentifierHeartRateVariabilitySDNN

const HealthKitHealthMetric(value: "HKQuantityTypeIdentifierHeartRateVariabilitySDNN")

Properties

definition String
Returns the HealthKit identifier string for this metric.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The HealthKit identifier string for this metric.
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

Constants

values → const List<HealthKitHealthMetric>
A constant List of the values in this enum, in order of their declaration.