ElastiRectTween.ofPosition constructor

ElastiRectTween.ofPosition({
  1. required Rect begin,
  2. required Rect end,
})

Implementation

ElastiRectTween.ofPosition({required this.begin, required this.end})
    : heightTween = Tween(begin: begin.height, end: end.height),
      widthTween = Tween(begin: begin.width, end: end.width),
      centerTween = Tween(begin: begin.center, end: end.center)
          .chain(CurveTween(curve: ElasticOutCurve(0.6))),
      super(begin: begin, end: end);