getAnimation<R> method

  1. @override
Animation<R> getAnimation<R>(
  1. String name
)
override

get the animation of provided name

It will throw if Animator.tweenMap is null

Implementation

@override
Animation<R> getAnimation<R>(String name) {
  assert(_tweenMap?.isNotEmpty == true);
  var anim = _animationMap[name];
  if (anim != null) {
    return anim as Animation<R>;
  }
  anim = _tweenMap![name]!.animate(injected.curvedAnimation);
  _animationMap[name] = anim;
  return anim as Animation<R>;
}