flutter_state_notifier library
Classes
-
StateNotifier<
T> - An observable class that stores a single immutable state.
-
StateNotifierBuilder<
T> - Listens to a StateNotifier and use it builds a widget tree based on the latest value.
-
StateNotifierProvider<
Controller extends StateNotifier< Value> , Value> - A provider for StateNotifier, which exposes both the controller and its StateNotifier.state.
Mixins
- LocatorMixin
- A mixin that adds service location capability to an object.
Typedefs
- ErrorListener = void Function(Object error, StackTrace? stackTrace)
- A callback that can be passed to StateNotifier.onError.
- RemoveListener = void Function()
- A callback that can be used to remove a listener added with StateNotifier.addListener.
Exceptions / Errors
-
DependencyNotFoundException<
T> -
Thrown when tried to call LocatorMixin.read<T>(), but the
T
was not found.s - StateNotifierListenerError
- An error thrown when trying to update the state of a StateNotifier, but at least one of the listeners threw.