reactivity library

Classes

BuildState<T>
Internal representation of a stored state, containing a unique key and the state value itself.
InitedState<T>
A strongly-initialized state container that must be given a value at creation.
Reactivity
A singleton-like static class that serves as the central controller for all reactive operations in the system.
StateBuilder
Encapsulates a builder function tied to a unique key, allowing widgets to rebuild reactively based on key-based updates.
ValueState<T>
A reactive state holder that can be externally updated and refreshed.
VoidState
A special type of state that holds no value but still triggers rebuilds.

Enums

ReactivityTypeEnum
Defines the types of reactivity handled internally by the system.

Functions

getStatus<T>() → T
Retrieves a globally tracked status value by type.
refresh([ReactiveKey? key]) → void
Triggers a full rebuild or a specific reactive key.
refreshOnly(ReactiveKey key) → void
Triggers a rebuild only for the widget associated with key.
refreshStatus(dynamic status) → void
Updates a global status value and triggers rebuilds for any listeners that depend on the status of that type.

Typedefs

Nothing = SizedBox
Represents an empty widget used as a placeholder in reactive contexts.
ReactiveKey = Key
A shortcut type alias for uniquely identifying reactive widgets.