startAnim method

void startAnim(
  1. double startScale,
  2. double endScale
)

Implementation

void startAnim(double startScale, double endScale) {
  final animating = scaleAnimController?.isAnimating ?? true;
  if (animating) {
    return;
  }

  scaleAnimation = Tween<double>(
    begin: startScale,
    end: endScale,
  ).animate(scaleAnimController);

  scaleAnimation.addListener(onAnimate);
  scaleAnimController.fling();

  /// print("anim started");
}