lerp method

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

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

Implementation

@useResult
FSelectSectionStyle lerp(FSelectSectionStyle other, double t) => FSelectSectionStyle(
  labelTextStyle: FWidgetStateMap.lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  labelPadding: EdgeInsetsGeometry.lerp(labelPadding, other.labelPadding, t) ?? labelPadding,
  dividerColor: FWidgetStateMap.lerpColor(dividerColor, other.dividerColor, t),
  dividerWidth: lerpDouble(dividerWidth, other.dividerWidth, t) ?? dividerWidth,
  itemStyle: itemStyle.lerp(other.itemStyle, t),
);