lerp static method

FlLine lerp(
  1. FlLine a,
  2. FlLine b,
  3. double t
)

Lerps a FlLine based on t value, check Tween.lerp.

Implementation

static FlLine lerp(FlLine a, FlLine b, double t) {
  return FlLine(
    color: Color.lerp(a.color, b.color, t),
    gradient: Gradient.lerp(a.gradient, b.gradient, t),
    strokeWidth: lerpDouble(a.strokeWidth, b.strokeWidth, t)!,
    dashArray: lerpIntList(a.dashArray, b.dashArray, t),
  );
}