Quantity class

A quantity sample.

Inheritance

Constructors

Quantity({required String uuid, required DateTime start, required DateTime end, required SourceRevision sourceRevision, required SampleTypeId type, required int count, required Map<String, double> values, Map<String, dynamic>? metadata, Device? device})
Quantity.fromJson(Map<String, dynamic> json)
factory

Properties

count → int
The number of values.
final
device → Device?
The device that collected the sample.
finalinherited
end → DateTime
The end date of the sample.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>?
Additional metadata for the sample.
finalinherited
quantityType → HKQuantityTypeIdentifier
The type of quantity.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceRevision → SourceRevision
The source revision of the sample.
finalinherited
start → DateTime
The start date of the sample.
finalinherited
type → SampleTypeId
The type of the sample.
finalinherited
uuid → String
The unique identifier of the sample.
finalinherited
values → Map<String, double>
The values of the quantity.
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