PresetSystem class

A concrete implementation of the ReactiveSystem for handling computed values, effects and reactive scopes.

Inheritance

Constructors

PresetSystem.new()

Properties

activeScope Subscriber?
Currently active effect scope
getter/setter pair
activeSub Subscriber?
Currently active subscriber being tracked
getter/setter pair
batchDepth int
Tracks nested batch operation depth
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pauseStack List<Subscriber?>
Stack for temporarily pausing subscribers during operations
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

endTracking(Subscriber sub) → void
Concludes tracking of dependencies for the specified subscriber.
inherited
Links a given dependency and subscriber if they are not already linked.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyEffect(Subscriber effect) bool
Handles effect notifications by processing the specified effect.
override
notifyEffectScope(EffectScope scope) bool
Processes a notification for an EffectScope, handling any pending effects.
processComputedUpdate(Computed computed, int flags) → void
Updates the computed subscriber if necessary before its value is accessed.
inherited
processEffectNotifications() → void
Processes queued effect notifications after a batch operation finishes.
inherited
processPendingInnerEffects(Subscriber sub, int flags) → void
Ensures all pending internal effects for the given subscriber are processed.
inherited
propagate(Link? link) → void
Traverses and marks subscribers starting from the provided link.
inherited
runEffect(Effect effect) → void
Executes an effect's function while properly tracking dependencies.
runEffectScope(EffectScope scope, void fn()) → void
Executes a function within an effect scope while tracking dependencies.
startTracking(Subscriber sub) → void
Prepares the given subscriber to track new dependencies.
inherited
toString() String
A string representation of this object.
inherited
updateComputed(Computed computed) bool
Updates the computed subscriber's value and returns whether it changed.
override
updateDirtyFlag(Subscriber sub, int flags) bool
Updates the dirty flag for the given subscriber based on its dependencies.
inherited

Operators

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