lerp method

  1. @useResult
FDividerStyle lerp(
  1. FDividerStyle other,
  2. double t
)

Linearly interpolate between this and another FDividerStyle using the given factor t.

Implementation

@useResult
FDividerStyle lerp(FDividerStyle other, double t) => .new(
  color: .lerp(color, other.color, t) ?? color,
  padding: .lerp(padding, other.padding, t) ?? padding,
  width: lerpDouble(width, other.width, t) ?? width,
);