buildAnimation method

Animation<T> buildAnimation(
  1. AnimationController controller,
  2. EffectEntry entry
)

Returns an animation based on the controller, entry, and begin/end values.

Implementation

Animation<T> buildAnimation(
    AnimationController controller, EffectEntry entry) {
  return entry
      .buildAnimation(controller)
      .drive(Tween<T>(begin: begin, end: end));
}