DurationSample class final

A span of time, such as a mindfulness session.

Inheritance
Annotations

Constructors

DurationSample({required DateTime start, required DateTime end, required VitalSource source, String? id})
Creates a duration sample.
const

Properties

aggregableValue → double?
The sample reduced to one number, for aggregation.
no setteroverride
duration → Duration
How long the measurement covers.
no setterinherited
end → DateTime
When it ended. Equal to start for instantaneous readings.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The platform's identifier, where it exposes one. Needed to delete.
finalinherited
isInstantaneous → bool
Whether the reading is a point rather than an interval.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → VitalSource
What recorded it.
finalinherited
start → DateTime
When the measurement began.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decode(Map<Object?, Object?> m) → DurationSample
Reads one off the platform channel.