AnimtedSpring constructor

AnimtedSpring({
  1. Key? key,
  2. required Widget child,
  3. SpringDescription spring = const SpringDescription(mass: 10, stiffness: 1, damping: 1),
  4. AnimationAction shouldAnimate(
    1. Offset oldAnchor,
    2. Offset newAnchor,
    3. Offset currentPosition,
    4. bool animating,
    )?,
})

Implementation

AnimtedSpring({
  Key? key,
  required this.child,
  this.spring = const SpringDescription(mass: 10, stiffness: 1, damping: 1),
  this.shouldAnimate,
}) : super(key: key);