useAnimation<T> function

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

Subscribes to an Animation and returns its value.

See also:

Implementation

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