lerp method

  1. @override
Rect lerp (double t)
override

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

Implementation

@override
Rect lerp(double t) {
  if (_dirty)
    _initialize();
  if (t == 0.0)
    return begin;
  if (t == 1.0)
    return end;
  return Rect.fromPoints(_beginArc.lerp(t), _endArc.lerp(t));
}