StsRealtimeProgressTracker class
Real-time progress tracker for Sit-to-Stand UI feedback.
Used by StsTestStepUI to visualize user movement (standing/sitting) based on incoming accelerometer data. Not used in final scoring or cycle detection - only for visual feedback.
Constructors
- StsRealtimeProgressTracker.new({double yThreshold = 1.0, double ySign = 1.0})
- Creates a real-time progress tracker for the STS test.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
progressNotifier
→ ValueNotifier<
double> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ySign → double
-
final
- yThreshold → double
-
final
Methods
-
addAccEvent(
double accY) → void - Adds a new accelerometer event (y-axis value) for processing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets the progress tracker to its initial state.
-
tick(
) → void - Updates the progress state based on the latest accelerometer event.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited