HKQuantity class

Represents a measured health quantity in HealthKit.

Stores a numeric value with its associated unit of measurement.

Constructors

HKQuantity({required double value, required String unit})
Creates a new quantity with the specified value and unit.
const

Properties

hashCode int
Generates a hash code based on the value and unit.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit String
The unit of measurement as a string (e.g., "bpm", "degC").
final
value double
The numeric value of the health measurement.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this quantity.
override

Operators

operator ==(Object other) bool
Compares this quantity with another for equality.
override