control library
Classes
- Controller
- The controller responsible for processing the logic, the connection of widgets and the date of the layer.
-
ControllerScope<
C extends Listenable> - Dependency injection of Controllers.
- HandlerContext
- Handler's context.
- IControllerObserver
- Controller observer
-
StateConsumer<
C extends IStateController< S> , S extends Object> - StateConsumer widget.
-
StateController<
S extends Object> - State controller
Mixins
- ConcurrentControllerHandler
- A mixin that provides concurrent controller concurrency handling. This mixin should be used on classes that extend Controller.
- DroppableControllerHandler
- Droppable controller concurrency
- SequentialControllerHandler
- Sequential controller concurrency
Extensions
- ControllerScopeBuildContextExtension on BuildContext
- Extension methods for BuildContext to simplify the use of ControllerScope.
Typedefs
-
StateConsumerBuilder<
S extends Object> = Widget Function(BuildContext context, S state, Widget? child) - Rebuild the widget when the state changes.
-
StateConsumerCondition<
S extends Object> = bool Function(S previous, S current) - Build when the method returns true.
-
StateConsumerListener<
C extends IStateController< S> , S extends Object> = void Function(BuildContext context, C controller, S previous, S current) - Fire when the state changes.
-
StateControllerFilter<
Value> = bool Function(Value prev, Value next) - Filter for StateController
-
StateControllerSelector<
S extends Object, Value> = Value Function(S state) - Selector from StateController