lerp static method

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

Implementation

static HorizontalLine lerp(HorizontalLine a, HorizontalLine b, double t) {
  return HorizontalLine(
    y: lerpDouble(a.y, b.y, t)!,
    label: HorizontalLineLabel.lerp(a.label, b.label, t),
    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),
    image: b.image,
    sizedPicture: b.sizedPicture,
    strokeCap: b.strokeCap,
  );
}