HealthDataPoint class
A HealthDataPoint object corresponds to a data point capture from GoogleFit or Apple HealthKit with a HealthValue as value.
Constructors
- HealthDataPoint(HealthValue _value, HealthDataType _type, HealthDataUnit _unit, DateTime _dateFrom, DateTime _dateTo, PlatformType _platform, String _deviceId, String _sourceId, String _sourceName)
- HealthDataPoint.fromJson(dynamic json)
-
Converts a json object to the HealthDataPoint
factory
Properties
- dateFrom → DateTime
-
The start of the time interval
no setter
- dateTo → DateTime
-
The end of the time interval
no setter
- deviceId → String
-
The id of the device from which the data point was fetched.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- platform → PlatformType
-
The software platform of the data point
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceId → String
-
The id of the source from which the data point was fetched.
no setter
- sourceName → String
-
The name of the source from which the data point was fetched.
no setter
- type → HealthDataType
-
The type of the data point
no setter
- typeString → String
-
The data point type as a string
no setter
- unit → HealthDataUnit
-
The unit of the data point
no setter
- unitString → String
-
The data point unit as a string
no setter
- value → HealthValue
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the HealthDataPoint to a json object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override