Reactivity class

A singleton-like static class that serves as the central controller for all reactive operations in the system.

It tracks internal state objects, manages reactive rebuilds, and dispatches updates through a shared ReactiveNotifier.

Constructors

Reactivity.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

lastStateKey Key
Tracks the most recently updated state key.
getter/setter pair
notifier ReactiveNotifier
Shared notifier responsible for dispatching widget rebuilds.
getter/setter pair

Static Methods

getLastBuildState() → dynamic
Returns the most recently registered BuildState, typically corresponding to the last state that was updated.
refresh(ReactiveKey? key) → void
Triggers a rebuild for either a specific widget (if key is provided) or for all reactive widgets if key is null.
refreshStatus(dynamic status) → void
Updates the stored value for a given status and notifies all widgets that are subscribed to that status type.