OvershootingRectTween.ofPosition constructor

OvershootingRectTween.ofPosition({
  1. required Rect begin,
  2. required Rect end,
  3. Curve? curve,
})

Implementation

OvershootingRectTween.ofPosition(
    {required this.begin, required this.end, Curve? curve})
    : heightTween = Tween(begin: begin.height, end: end.height),
      widthTween = Tween(begin: begin.width, end: end.width),
      topTween = Tween(begin: begin.topLeft, end: end.topLeft),
      super(begin: begin, end: end);