ReactiveContext class

Available extensions

Constructors

ReactiveContext({ReactiveConfig? config})

Properties

config ReactiveConfig
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSpyEnabled bool
no setter
isWithinBatch bool
no setter
nextId int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPendingReaction(Reaction reaction) → void
clearObservables(Derivation derivation) → void
conditionallyRunInAction(void fn(), Atom atom, {String? name, ActionController? actionController}) → void

Available on ReactiveContext, provided by the ConditionalAction extension

Only run within an action if outside a batch fn is the function to execute. Optionally provide a debug-name.
endAllowStateChanges({bool allow = true}) → void
endBatch() → void
endUntracked(Derivation? prevDerivation) → void
enforceReadPolicy(Atom atom) → void
enforceWritePolicy(Atom atom) → void
isComputingDerivation() bool
nameFor(String prefix) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReactionError(ReactionErrorHandler handler) Dispose
popComputation() → void
propagateChanged(Atom atom) → void
pushComputation() → void
reportObserved(Atom atom) → void
runReactions() → void
spy(SpyListener listener) Dispose
spyReport(SpyEvent event) → void
startAllowStateChanges({bool allow = true}) bool
startBatch() → void
startUntracked() Derivation?
toString() String
A string representation of this object.
inherited
trackDerivation<T>(Derivation d, T fn()) → T?
untracked<T>(T fn()) → T

Operators

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