scr/state_management/rm library
Classes
-
DependsOn<
T> - Setting the Injected models dependencies.
-
ExtendedState<
T extends StatefulWidget> -
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.
-
InjectedImp<
T> -
InjectedImpRedoPersistState<
T> -
IObservable<
T> - Observable state interface
- IPersistStore
- PersistStore Interface to implementation.
- IStatefulWidget
- MyElement
-
MyStatefulWidget<
T> -
OnBuilder<
T> - Explicitly listenTo one or more injected state and reinvoke its onBuilder callback each time an injected state emits a notification.
-
OnBuilderBindingObserver<
T> -
PersistState<
T> - State persistence setting.
-
ReactiveModel<
T> - A lightweight version of Injected
-
ReactiveModelImp<
T> - 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
- TopAppWidget
- Prefer using TopStatelessWidget instead.
- TopStatelessWidget
- Used instead of StatelessWidget on top of MaterialApp widget to listen to InjectedI18N and InjectedTheme
-
UndoRedoPersistState<
T> - Undo-redo and persist state
Enums
- PersistOn
- Enums {disposed, manualPersist}
- StateStatus
- Possible state status
Constants
- deepEquality → const DeepCollectionEquality
Properties
-
injectedModels
→ Set<
ReactiveModelImp> -
final
Functions
-
addToActiveReactiveModels(
ReactiveModelImp inj) → VoidCallback -
addToContextSet(
BuildContext ctx) → VoidCallback -
isObjectOrNull<
T> () → bool -
typeDef<
T> () → Type
Typedefs
-
AsyncVoidCallback
= Future<
void> Function() - Signature of callbacks that have no arguments and return no data.
- ObserveReactiveModel = void Function(ReactiveModelImp)
-
ObserveTopWidget
= void Function(ReactiveModelImp, bool onObserverAdded(BuildContext), void didChangeLocales(List<
Locale> ? locales)?) -
OnData<
T> = Widget Function(T data) - OnError = Widget Function(dynamic error, void refreshError())
- OnIdle = Widget Function()
- OnWaiting = Widget Function()
- ShouldRebuild = bool Function(SnapState, SnapState)
-
StateInterceptor<
T> = SnapState< T> ? Function(SnapState<T> currentSnap, SnapState<T> nextSnap)