mini_tea_flutter library

Classes

FeatureBuilder<F extends Feature<S, dynamic, dynamic>, S>
A widget that rebuilds its child when the state of a Feature changes.
FeatureEffectListener<F extends Feature<dynamic, dynamic, E>, E, Effect extends E>
A widget that listens for specific effects emitted by a Feature and invokes a callback.
FeatureListener<F extends Feature<S, dynamic, dynamic>, S>
A widget that listens to state changes in a Feature and invokes a callback.
FeatureProvider<F extends Feature>
A provider widget for managing and exposing a Feature to the widget tree.

Typedefs

CreateFeature<F extends Feature> = F Function(BuildContext context)
A typedef representing a factory function to create a Feature instance.
FeatureStateCondition<S> = bool Function(S previous, S current)
A condition that determines whether to notify the FeatureWidgetListener based on the previous and current states.
FeatureWidgetBuilder<S> = Widget Function(BuildContext context, 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.
FeatureWidgetListener<S> = void Function(BuildContext context, S state)
A callback that is invoked whenever the state of the associated Feature changes.