lux_flutter library

Classes

LuxMultiListener
LuxMultiProvider
RepositoryProvider<T>
StoreBuilder<B extends StateStreamable<S>, S>
StoreBuilderBase<B extends StateStreamable<S>, S>
StoreConsumer<B extends StateStreamable<S>, S>
StoreListener<B extends StateStreamable<S>, S>
StoreListenerBase<B extends StateStreamable<S>, S>
StoreProvider<T extends StateStreamableSource<Object?>>
StoreSelector<B extends StateStreamable<S>, S, T>
StoreWatcher<B extends StateStreamable<S>, S, T>
StreamListener<B extends Stream<S>, S>
StreamListenerBase<B extends Stream<S>, S>
TruckListener<B extends EventStreamableSource<S>, S>
TruckListenerBase<B extends EventStreamableSource<S>, S>
TruckProvider<T extends EventStreamableSource<Object?>>

Mixins

LuxListenerSingleChildWidget
Mixin which allows LuxMultiListener to infer the types of multiple StoreListener, TruckListener, StreamListener.
LuxProviderSingleChildWidget
Mixin which allows LuxMultiProvider to infer the types of multiple StoreProvider, TruckProvider, RepositoryProvider.

Typedefs

StoreBuilderCondition<S> = bool Function(S previous, S current)
Signature for the buildWhen function which takes the previous state and the current state and is responsible for returning a bool which determines whether to rebuild StoreBuilder with the current state.
StoreListenerCondition<S> = bool Function(S previous, S current)
Signature for the listenWhen function which takes the previous state and the current state and is responsible for returning a bool which determines whether or not to call StoreWidgetListener of StoreListener with the current state.
StoreWidgetBuilder<B, S> = Widget Function(BuildContext context, B store, S state)
Signature for the builder function which takes the BuildContext and state and is responsible for returning a widget which is to be rendered. This is analogous to the builder function in StreamBuilder.
StoreWidgetListener<B, S> = void Function(BuildContext context, B store, S state)
Signature for the listener function which takes the BuildContext along with the state and is responsible for executing in response to state changes.
StoreWidgetListStateBuilder<B, T> = Widget Function(BuildContext context, B store, T state)
StoreWidgetSelector<S, T> = T Function(S state)
Signature for the selector function which is responsible for returning a selected value, T, based on state.
StoreWidgetWatcher<S, T> = T Function(S state)
StreamListenerCondition<S> = bool Function(S state)
StreamWidgetListener<S> = void Function(BuildContext context, S state)
TruckWidgetListener<B, S> = void Function(BuildContext context, B truck, S state)