Category class
A category sample.
Constructors
-
Category.new({required String uuid, required DateTime start, required DateTime end, required SourceRevision sourceRevision, required int value, required SampleTypeId type, Map<
String, dynamic> ? metadata, Device? device}) -
Category.fromJson(Map<
String, dynamic> json) -
factory
Properties
- categoryType → HKCategoryTypeIdentifier
-
The type of category.
no setter
- 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
- 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
- value → int
-
The value of category.
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