useStateNotifier<T> function
T
useStateNotifier<T>(
- StateNotifier<
T> stateNotifier
Subscribes to a StateNotifier
and mark the widget as needing build
whenever the state is changed.
Implementation
T useStateNotifier<T>(StateNotifier<T> stateNotifier) {
return use(_StateNotifierHook<T>(stateNotifier));
}