useAnimation<T> function

T useAnimation <T>(Animation<T> animation)

Subscribes to an Animation and return its value.

See also:

Implementation

T useAnimation<T>(Animation<T> animation) {
  useListenable(animation);
  return animation.value;
}