HealthDataPoint class
A HealthDataPoint object corresponds to a data point captures from GoogleFit or Apple HealthKit
Properties
- dateFrom → DateTime
-
Get the start of the datetime interval
read-only
- dateTo → DateTime
-
Get the end of the datetime interval
read-only
- deviceId → String
-
Get the id of the device from which
the data point was extracted
read-only
- hashCode → int
-
Override required due to overriding the '==' operator
read-only, override
- platform → PlatformType
-
Get the software platform of the data point
(i.e. Android or iOS)
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- type → HealthDataType
-
Get the type of the data point
read-only
- typeString → String
-
Get the data point type as a string
read-only
- unit → HealthDataUnit
-
Get the unit of the data point
read-only
- unitString → String
-
Get the data point unit as a string
read-only
- value → num
-
Get the quantity value of the data point
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> - Converts the HealthDataPoint to a json object
-
toString(
) → String -
Converts the HealthDataPoint to a string
override
Operators
-
operator ==(
Object o) → bool -
An equals (==) operator for comparing two data points
This makes it possible to remove duplicate data points.
override