lerp method

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

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

Implementation

@useResult
FRawItemContentStyle lerp(FRawItemContentStyle other, double t) => FRawItemContentStyle(
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  prefixIconStyle: FWidgetStateMap.lerpIconThemeData(prefixIconStyle, other.prefixIconStyle, t),
  prefixIconSpacing: lerpDouble(prefixIconSpacing, other.prefixIconSpacing, t) ?? prefixIconSpacing,
  childTextStyle: FWidgetStateMap.lerpTextStyle(childTextStyle, other.childTextStyle, t),
);