lerp method

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

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

Implementation

@useResult
FItemContentStyle lerp(FItemContentStyle other, double t) => FItemContentStyle(
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  prefixIconStyle: FWidgetStateMap.lerpIconThemeData(prefixIconStyle, other.prefixIconStyle, t),
  prefixIconSpacing: lerpDouble(prefixIconSpacing, other.prefixIconSpacing, t) ?? prefixIconSpacing,
  titleTextStyle: FWidgetStateMap.lerpTextStyle(titleTextStyle, other.titleTextStyle, t),
  titleSpacing: lerpDouble(titleSpacing, other.titleSpacing, t) ?? titleSpacing,
  subtitleTextStyle: FWidgetStateMap.lerpTextStyle(subtitleTextStyle, other.subtitleTextStyle, t),
  middleSpacing: lerpDouble(middleSpacing, other.middleSpacing, t) ?? middleSpacing,
  detailsTextStyle: FWidgetStateMap.lerpTextStyle(detailsTextStyle, other.detailsTextStyle, t),
  suffixIconStyle: FWidgetStateMap.lerpIconThemeData(suffixIconStyle, other.suffixIconStyle, t),
  suffixIconSpacing: lerpDouble(suffixIconSpacing, other.suffixIconSpacing, t) ?? suffixIconSpacing,
);