useValueListenable<T> function

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

Subscribes to a ValueListenable and return its value.

See also:

Implementation

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