scr/state_management/state_management library

Classes

Child
Use Child in combination of other widget listeners, to control the part of the widget tree to rebuild. See also Child2 and Child3
Child2
Child3
DependsOn<T>
Setting the Injected models dependencies.
IN
Inject<T>
Base class for Inject
Injectable
Injected<T>
A Wrapper class that encloses the state of the model we want to Inject. The state can be mutable or immutable and can also be global or local.
Injector
A widget used to provide a business logic model to the widget tree, and make one instance of the model available to all its children.
IPersistStore
PersistStore Interface to implementation.
OnBuilder<T>
Explicitly listenTo one or more injected state and reinvoke its onBuilder callback each time an injected state emits a notification.
OnReactive
First choice widget to listen to an injected state.
PersistState<T>
State persistence setting.
ReactiveModel<T>
A lightweight version of Injected
ReactiveStatelessWidget
Use it instead of StatelessWidget to make the hole sub tree reactive.
RM
SideEffects<T>
Side effect to be called when the state is initialized, mutated and disposed of
SnapError
The error representation
SnapState<T>
Snap representation of the state
StateBuilder<T>
One of the three observer widgets in states_rebuilder
StateWithMixinBuilder<T, R>
StateBuilder that can be mixin with one of the predefined mixin in mixinWith
TopAppWidget
Prefer using TopStatelessWidget instead.
TopStatelessWidget
Used instead of StatelessWidget on top of MaterialApp widget to listen to InjectedI18N and InjectedTheme

Enums

MixinWith
Mixin StateWithMixinBuilder
PersistOn
Enums {disposed, manualPersist}
StateStatus
Possible state status

Extensions

BoolX on bool
Extension on bool
DoubleX on double
Extension on double
IntX on int
Extension on int
ListX on List<T>
Extension on List
MapX on Map<T, D>
Extension on Map
NullX on Null
Extension on Null
ReactiveModelBool on ReactiveModel<bool>
Extension on ReactiveModel
ReactiveModeListX on List<ReactiveModel>
Extension on List
ReactiveModeX on ReactiveModel<T>
Extension on ReactiveModel
SetX on Set<T>
Extension on Set
StringX on String
Extension on String
TypeX on T
Extension on type

Typedefs

StateInterceptor<T> = SnapState<T>? Function(SnapState<T> currentSnap, SnapState<T> nextSnap)