ObservableTracker class
Tracks current observers and their associated observable dependencies.
Used internally to enable automatic dependency registration and disposal.
Properties
- currentObserver ↔ VoidCallback?
-
The current active observer being tracked.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disposeObserver(
VoidCallback observer) → void - Disposes an observer and removes it from all observables it was listening to.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runWithObserver(
VoidCallback observer, VoidCallback fn) → void - Executes a function within an observer context, enabling automatic dependency tracking.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ObservableTracker
-
The singleton instance of ObservableTracker.
final