nano library

Classes

Action
Actions that are send to the Dispatcher and executed which causes mutation on the specified store's state
ActionId
Unique id of every action This is generated by the Dispatcher It can also be obtained by Dispatcher.instance.getId()
Dispatcher
Middleware
ModifiedBehaviorSubject<T>
BehaviorSubject that retains the last successfull data on receiving an error.
Mutation<T>
Pool
Pool is a depdency injection tool designed specifically for managing stores acros your apps. It's recommended that you still use Provider/Consumer for passing around other dependencies or some other serivce locator as it can be really hectic if you try to make it with Pool.
Prop<T>
An improved implementation of AsyncResponse
Reply<T>
An improved implementation of AsyncResponse
StateBuilder<T>
StateBuilder automatiaclly rebuilds it's child widgets when a new state is arrived. It behvaes like a StreamBuilder but it gives you control.
StateSnapshot<T>
Current state of the store.
Store<T, A>
StoreManager
StoreToken<T>
A unique token that represents a certain instance of the store
Worker<T>
Worker are callback that do when the Store state has met the specified condition Advantanges of workers over just listening the store for changes is that it gives you a limit that specifies the number of times it needs to be called and after that it automatically get's removed
Writable<T>
Writable is a quick way to create a store like entity, where you can directly add states withoutt worrying about mutations.

Enums

PropStatus
Status for AsyncResponse
Status
Status for AsyncResponse
StoreTokenStatus

Functions

threadedExecution(_MutliThreadArgs args) Future<Prop>

Typedefs

ActionBody<T, K> = Future<K> Function(T payload)
ActionMutation<K, T> = dynamic Function(K response, T payload)
ActionMutations<T, K> = List<Mutation> Function(K response, T payload)
BuilderCondition<T> = bool Function(StateSnapshot<T> oldState, StateSnapshot<T> newState)
DataBuilderFn<T> = Widget Function(BuildContext context, T data)
ErrorBuilderFn = Widget Function(BuildContext context, Object error)
ProxyStores<T> = List<Store> Function(T payload)
SnapBuilder<T> = Widget Function(BuildContext context, StateSnapshot<T> event, bool initialized)
StoreDisposer<T> = void Function(T store)
WaitingBuilderFn = Widget Function(BuildContext context)