PendingExerciseSubscription class

Represents a subscription to the expected change in a device's status after an exercise is started.

When an exercise is started, it may take several secconds for the change to be reflected in the device's status. This subscription will live until the device's status is updated accordingly, or until some timeout based on kPendingTimeout.

This subscription can be cancelled early via cancel.

Constructors

PendingExerciseSubscription({required int deviceId, required ExerciseMode exerciseMode, required PendingExerciseNotifier notifier, required Timer timer, required ProviderSubscription subscription})

Properties

deviceId int
final
exerciseMode ExerciseMode
final
hashCode int
The hash code for this object.
no setterinherited
notifier PendingExerciseNotifier
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscription ProviderSubscription
final
timer Timer
final

Methods

cancel({bool shouldRemove = true}) → void
Cancels the subscription, so the underlying listener to the device's status will no longer be called.
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