createAnimation function

void createAnimation(
  1. AnimationInfo animation,
  2. TickerProvider vsync
)

Implementation

void createAnimation(AnimationInfo animation, TickerProvider vsync) {
  final newController = AnimationController(vsync: vsync);
  animation.controller = newController;
}