widget_state_notifier library
Classes
- MultiWidgetStateConsumer
- A widget for consuming state changes from multiple WidgetStateNotifier instances and rebuilding its child widget in response to state changes.
- WidgetDependencyProvider
- A provider widget for injecting dependencies into the widget tree.
-
WidgetStateConsumer<
T> - A widget for consuming state changes from a WidgetStateNotifier and rebuilding its child widget in response to state changes.
- WidgetStateControl
- Class defining control signals for managing state in WidgetStateNotifier.
- WidgetStateDependency
- A class to manage dependency injection into the widget tree
-
WidgetStateNotifier<
T> - A generic class for managing state and broadcasting changes to listeners.
-
WidgetStateProvider<
T> - An InheritedWidget that provides a WidgetStateNotifier down the widget tree.
-
WidgetStateRequest<
R, D> - A class for managing requests and responses, allowing the sending and listening of requests based on specific states.
Mixins
-
WidgetDependencyMixin<
T extends StatefulWidget> - A mixin to easily access dependencies within a widget.
Extensions
-
RestrictedWidgetStateExtention
on WidgetStateNotifier<
T> - Extension on WidgetStateNotifier for restricting modification of state.
Typedefs
-
WidgetControlStateBuilder<
D> = Widget Function(BuildContext context, D? data, WidgetStateControl widgetStateControl) - A function signature for the builder function used in WidgetStateConsumer.
-
WidgetStateBuilder<
D> = Widget Function(BuildContext context, D? data) - A function signature for the builder function used in WidgetStateConsumer.
- WidgetStateListBuilder = Widget Function(BuildContext context)
- A function signature for the builder function used in MultiWidgetStateConsumer.
Exceptions / Errors
- RestrictedWidgetStateException
- Exception to indicate restricted usage of state modification.