state_manager/state_manager library

Classes

CustomStatus<T>
Deex
The simplest reactive widget in Deex.
DeexConsumer<S extends DeexStore>
A widget that listens to a DeexStore and rebuilds when the state changes. It combines both a builder and a listener callback.
DeexConsumerState<S extends DeexStore>
DeexElement
DeexElement is a class that extends StatelessElement and mixes in StatelessObserverComponent
DeexError
Error class for Deex errors.
DeexListenable<T>
DeexNotifier<T>
DeexNotifier has a native status and state implementation, with the Deex Lifecycle
DeexStatelessWidget
A StatelessWidget that can listen to reactive changes.
DeexStore
DeexValue<T extends DeexInterface>
Similar to Deex, but manages a local state. Pass the initial data in constructor. Useful for simple local states, like toggles, visibility, themes, button states, etc. Sample: DeexValue((data) => Switch( value: data.value, onChanged: (flag) => data.value = flag, ), false.obs, ),
EmptyStatus<T>
ErrorStatus<T, S>
FullLifeCycleController
A controller with super lifecycles (including native lifecycles)
ListNotifier
A ListNotifier with both single and group listener support.
ListNotifierGroup
A notifier with a group of listeners identified by an ID.
ListNotifierSingle
A Notifier with single listeners
LoadingStatus<T>
Notifier
Singleton class that manages notifiers.
NotifyData
Class representing the data for notifications.
Observer
It's a experimental feature
RxStatus<T>
RxStore
A clean store to be used with only Rx variables
RxWidget
The RxWidget is the base for all Deex reactive widgets
StateController<T>
A recommended way to use Deex with Future fetching
SuccessStatus<T>
SuperController<T>
A controller with super lifecycles (including native lifecycles) and StateMixins
Value<T>
ValueBuilder<T>
Manages a local state like ObxValue, but uses a callback instead of a Rx value.
ValueBuilderState<T>
Manages local state like ObxValue, but uses a callback instead of an Rx value.

Mixins

FullLifeCycleMixin
ListNotifierGroupMixin
This mixin adds group listener support to Listenable.
ListNotifierSingleMixin
This mixin adds addListener, removeListener, and containsListener implementation to Listenable.
ScrollMixin
this mixin allow to fetch data when the scroll is at the bottom or on the top
StatelessObserverComponent
A component that can track changes in a reactive variable
StateMixin<T>

Extensions

StateExt on StateMixin<T>
StatusDataExt on RxStatus<T>

Typedefs

DeexBuilder<S> = Widget Function(BuildContext context, S state)
A function that returns a widget based on the BuildContext and the DeexStore state.
DeexListener<S> = void Function(BuildContext context, S state)
A function that performs side effects based on the BuildContext and the DeexStore state.
DeexStateUpdate = void Function()
Replaces StateSetter, returning if the Widget is mounted for extra validation.
Disposer = void Function()
This callback removes the listener added by the addListener function.
FuturizeCallback<T> = Future<T> Function(VoidCallback fn)
NotifierBuilder<T> = Widget Function(T state)
ValueBuilderBuilder<T> = Widget Function(T snapshot, ValueBuilderUpdateCallback<T> updater)
Defines a callback that takes a value of generic type T and an updater, and returns a Widget
ValueBuilderUpdateCallback<T> = void Function(T snapshot)
Defines a callback that takes a value of generic type T and returns nothing
VoidCallback = void Function()
WidgetCallback = Widget Function()