useValueListenable<T> function
Subscribes to a ValueListenable and returns its value.
See also:
- ValueListenable, the created object
- useListenable
Implementation
T useValueListenable<T>(ValueListenable<T> valueListenable) {
use(_UseValueListenableHook(valueListenable));
return valueListenable.value;
}