vxstate library Null safety

Classes

VxBuilder<T>
A stream builder like widget that accepts mutations and rebuilds after their execution.
VxConsumer<T>
A stream builder like widget that accepts mutations and rebuilds after their execution.
VxInterceptor
Implementation of this class can be used to act before or after a mutation execution.
VxMutation<T extends VxStore?>
An implementation of this class holds the logic for updating the VxStore.
VxNotifier
Helper widget that executes the provided callbacks with context on execution of the mutations. Useful to show SnackBar or navigate to a different route after a mutation.
VxState
The coordinating widget that keeps track of mutations and the notify the same to the listening widgets.
VxStore
App's store should extend this class. An instance of this class is given to VxState while initialization only once.

Mixins

VxEffects<ON>
Secondary mutation executed based on the result of the first. Similar to chaining actions in Redux. For example, an http request will have a success or a fail side effect after request is complete.

Enums

VxStatus
Status about the current state

Typedefs

ContextCallback = void Function(BuildContext context, VxMutation<VxStore?> mutation)
Function signature for the callback with context.
VxMutationBuilder = VxMutation<VxStore?> Function()
Function signature for mutations that has deferred execution. VxMutation.next accepts functions with this signature.
VxStateWidgetBuilder<T> = Widget Function(BuildContext context, T store, VxStatus? status)
VxWidgetBuilder gives context and status back. Status are more useful when you use vx effects