lerp method

  1. @override
Rect lerp(
  1. double t
)
override

Returns the value this variable has at the given animation clock value.

Implementation

@override
Rect lerp(double t) {
  final centerLoc = centerTween.transform(t);

  return Rect.fromCenter(
      center: centerLoc,
      width: widthTween.lerp(t),
      height: heightTween.lerp(t));
}