show method

void show({
  1. Duration? duration,
  2. required TickerProvider vsync,
  3. double? from,
  4. required Curve curve,
})

Implementation

void show({
  Duration? duration,
  required TickerProvider vsync,
  double? from,
  required Curve curve,
}) {
  _animController?.removeStatusListener(_onAnimateEnd);
  _animController = CurvedAnimationController(
    duration: duration,
    vsync: vsync,
    curve: curve,
  );
  _animController?.addStatusListener(_onAnimateEnd);
  _animController
    ?..reset()
    ..forward(from: from);
}