ExerciseSessionSegment class
Equivalent of ExerciseSession.Segment
from HealthConnectReporter https://github.com/kvs-coder/HealthConnectReporter
One segment of the session, e.g. a set of an exercise.
Supports map representation.
Has a ExerciseSessionSegment.fromJson constructor to create instances from JSON payload coming from Android native code.
- Mixed-in types
Constructors
- ExerciseSessionSegment({required int startTimestamp, required int endTimestamp, required ExerciseSegmentType segmentType, int repetitions = 0})
-
const
-
ExerciseSessionSegment.fromJson(Map<
String, dynamic> json) - General constructor from JSON payload
Properties
- endTimestamp → int
-
Epoch milliseconds, after startTimestamp
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
map
→ Map<
String, dynamic> -
General map representation
no setteroverride
- repetitions → int
-
Number of repetitions, not negative.
0by defaultfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentType → ExerciseSegmentType
-
The type of segment
final
- startTimestamp → int
-
Epoch milliseconds
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