startFadeInAnimation method

void startFadeInAnimation(
  1. Duration duration,
  2. TickerProvider vsync, {
  3. double? from,
})

Implementation

void startFadeInAnimation(Duration duration, TickerProvider vsync,
    {double? from}) {
  animationController?.removeStatusListener(_onAnimateEnd);

  animationController = AnimationController(duration: duration, vsync: vsync)
    ..addStatusListener(_onAnimateEnd);

  animationController!.forward(from: from);
}