meowchannel library

Functions

applyWorker<A, S>(Stream<A> actionStream, WorkerContext<S> context, Worker<A, S> worker) Future
combinedReducer<S>(Iterable<Reducer<S>> reducers) Reducer<S>
combinedWorker<A, S>(Iterable<Worker<A, S>> workers) Worker<A, S>
computedModule<S>(Map<String, Computed<S, dynamic>> computed) Module<S>
syncedReducer<A, S>(SyncedReducer<A, S> reducer, {S? initialState}) Reducer<S>
typedReducer<A, S>(TypedReducer<A, S> reducer) Reducer<S>
typedWorker<A, TA extends A, S>(Worker<TA, S> _worker) Worker<A, S>
watcher<A, S>(Worker<A, S> worker, Stream<A> select(Stream actionStream, WorkerContext<S> context)) Watcher<A, S>
worker<A, S>(_Work<A, S> work) Worker<A, S>
workerModule<S>(List<Watcher<dynamic, S>> watchers) Module<S>

Typedefs

Dispatcher = Future<void> Function(dynamic action)
Reducer<S> = FutureOr<S> Function(dynamic action, S previousState)
StoreHookBody<S> = dynamic Function(Store<S> store, S state, dynamic action)
StoreHookPreviousStateBody<S> = dynamic Function(S? previousState, S state, dynamic action)
SyncedReducer<A, S> = S Function(A action, S previousState)
TypedReducer<A, S> = FutureOr<S> Function(A action, S previousState)

Exceptions / Errors

StoreException