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) => FDividerStyle(
  color: Color.lerp(color, other.color, t) ?? color,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  width: lerpDouble(width, other.width, t) ?? width,
);