states_rebuilder library

Classes

Animate
Object exposed by the builder method of the OnAnimationBuilder. It is used to set tweens explicitly or implicitly.
Child
Use Child in combination of other widget listeners, to control the part of the widget tree to rebuild.
Child2
Child3
DependsOn<T>
Setting the Injected models dependencies.
IAuth<T, P>
Interface to implement for authentication and authorization
ICRUD<T, P>
Interface to implement to query a rest API or database for Create, Read, Update, and Delete of Items-Item.
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.
InjectedAnimation
Inject an animation. It works for both implicit and explicit animation.
InjectedAuth<T, P>
Injection of a state that can authenticate and authorize a user.
InjectedCRUD<T, P>
Injection of a state that can create, read, update and delete from a backend or database service.
InjectedForm
Inject a form that controls all TextField and OnFormFieldBuilder instantiated inside its builder method.
InjectedFormField<T>
Inject form inputs other than for text editing
InjectedI18N<I18N>
InjectedNavigator
Injecting a Navigator 2 that holds a RouteData state.
InjectedScrolling
This injected state abstracts the best practices to come out with a simple, clean, and testable approach to control Scrollable view.
InjectedTabPageView
Inject a TabController and PageController and sync them to work together to get the most benefit of them.
InjectedTextEditing
Inject a TextEditingController
InjectedTheme<KEY>
Injection of a state that handle app theme switching.
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.
MiddleSnapState<T>
On<T>
Callbacks to be invoked depending on the state status of an Injected model
OnAnimationBuilder
Widget used to listen to an InjectedAnimation and call its builder each time the animation ticks.
OnAuthBuilder<T, P>
Listen to an InjectedAuth and define the appropriate view for each case
OnBuilder<T>
Explicitly listenTo one or more injected state and reinvoke its onBuilder callback each time an injected state emits a notification.
OnCombined<T, R>
Callbacks to be invoked depending on the combined state status of a list of Injected models
OnCRUD<T>
OnCRUDBuilder
To listen to an InjectedCRUD state just use ReactiveStatelessWidget, OnReactive, or OnBuilder widgets.
OnCRUDSideEffects<T>
OnFormBuilder
OnFormFieldBuilder<T>
Listen to an InjectedFormField and define its corresponding input fields
OnFormSubmissionBuilder
OnFuture<F>
OnFutureBuilder<T>
OnReactive
First choice widget to listen to an injected state.
OnScrollBuilder
Listen to an InjectedScrolling state.
OnStreamBuilder<T>
OnTabPageViewBuilder
Listen to InjectedTabPageView.
PageSettings
Data that might be useful in constructing a Page. It extends RouteSettings
PersistState<T>
State persistence setting.
ReactiveModel<T>
A lightweight version of InjectedImp
ReactiveStatelessWidget
Use it instead of StatelessWidget to make the hole sub tree reactive.
RM
RouteData
Object that holds information about the active route.
RouteWidget
Widget use to define sub routes or just for better organization or add custom transition to a particular route.
SideEffects<T>
Side effect to be called when the state is initialized, mutated and disposed of
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
SystemLocale
Used to represent the locale of the system.
TopAppWidget
Prefer using TopStatelessWidget instead.
TopStatelessWidget
Used instead of StatelessWidget on top of MaterialApp widget to listen to InjectedI18N and InjectedTheme
WhenRebuilder<T>
a combination of StateBuilder widget and ReactiveModel.whenConnectionState method. It Exhaustively switch over all the possible statuses of ReactiveModel.connectionState
WhenRebuilderOr<T>
Just like WhenRebuilder but you do not have to define all possible states.

Enums

MixinWith
Mixin StateWithMixinBuilder
PersistOn
Enums {disposed, manualPersist}

Functions

isObjectOrNull<T>() bool