lerp method
Linearly interpolate between this and another FItemContentStyle using the given factor t.
Implementation
@useResult
FItemContentStyle lerp(FItemContentStyle other, double t) => .new(
padding: .lerp(padding, other.padding, t) ?? padding,
prefixIconStyle: .lerpIconThemeData(prefixIconStyle, other.prefixIconStyle, t),
prefixIconSpacing: lerpDouble(prefixIconSpacing, other.prefixIconSpacing, t) ?? prefixIconSpacing,
titleTextStyle: .lerpTextStyle(titleTextStyle, other.titleTextStyle, t),
titleSpacing: lerpDouble(titleSpacing, other.titleSpacing, t) ?? titleSpacing,
subtitleTextStyle: .lerpTextStyle(subtitleTextStyle, other.subtitleTextStyle, t),
middleSpacing: lerpDouble(middleSpacing, other.middleSpacing, t) ?? middleSpacing,
detailsTextStyle: .lerpTextStyle(detailsTextStyle, other.detailsTextStyle, t),
suffixIconStyle: .lerpIconThemeData(suffixIconStyle, other.suffixIconStyle, t),
suffixIconSpacing: lerpDouble(suffixIconSpacing, other.suffixIconSpacing, t) ?? suffixIconSpacing,
);