useValueWatcher<T> function

ValueNotifier<T> useValueWatcher<T>(
  1. ValueNotifier<T> notifier
)

Implementation

ValueNotifier<T> useValueWatcher<T>(ValueNotifier<T> notifier) {
  final changeState = State.change();
  Listener.use(notifier, changeState);
  return notifier;
}