syncToValueNotifier<T> function
Implementation
ListenerDisposer syncToValueNotifier<T>(
ValueNotifier<T> notifier, SingleValue<T> singleValue) {
final updater = () => singleValue.update(notifier.value);
notifier.addListener(updater);
return () => notifier.removeListener(updater);
}