lerp method

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

lerp return a value between begin and end

Implementation

@override
BorderRadius lerp(double t) => BorderRadius.only(
      topLeft: radiusNNLerp(begin.topLeft, end.topLeft, t),
      topRight: radiusNNLerp(begin.topRight, end.topRight, t),
      bottomLeft: radiusNNLerp(begin.bottomLeft, end.bottomLeft, t),
      bottomRight: radiusNNLerp(begin.bottomRight, end.bottomRight, t),
    );