useValueListenable<T> function

T useValueListenable<T>(
  1. ValueListenable<T> valueListenable
)

Subscribes to a ValueListenable and returns its value.

See also:

Implementation

T useValueListenable<T>(ValueListenable<T> valueListenable) {
  use(_UseValueListenableHook(valueListenable));
  return valueListenable.value;
}