useValueListenable<T> function Null safety

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

Subscribes to a ValueListenable and return its value.

See also:

Implementation

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