lerp method

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

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

Implementation

@useResult
FItemGroupStyle lerp(FItemGroupStyle other, double t) => FItemGroupStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
  dividerColor: FWidgetStateMap.lerpColor(dividerColor, other.dividerColor, t),
  dividerWidth: lerpDouble(dividerWidth, other.dividerWidth, t) ?? dividerWidth,
  itemStyle: itemStyle.lerp(other.itemStyle, t),
);