mini_tea_flutter library
Classes
-
FeatureBuilder<
F extends Feature< S, dynamic, dynamic> , S> -
A widget that rebuilds its child when the state of a
Featurechanges. -
FeatureEffectListener<
F extends Feature< dynamic, dynamic, E> , E, Effect extends E> -
A widget that listens for specific effects emitted by a
Featureand invokes a callback. -
FeatureListener<
F extends Feature< S, dynamic, dynamic> , S> -
A widget that listens to state changes in a
Featureand invokes a callback. -
FeatureProvider<
F extends Feature> -
A provider widget for managing and exposing a
Featureto the widget tree.
Typedefs
-
CreateFeature<
F extends Feature> = F Function(BuildContext context) -
A typedef representing a factory function to create a
Featureinstance. -
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
builderfunction which takes theBuildContextandstateand 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
Featurechanges.