lerp method

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

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

Implementation

@useResult
FRawTileContentStyle lerp(FRawTileContentStyle other, double t) => .new(
  prefixIconStyle: .lerpIconThemeData(prefixIconStyle, other.prefixIconStyle, t),
  childTextStyle: .lerpTextStyle(childTextStyle, other.childTextStyle, t),
  padding: .lerp(padding, other.padding, t) ?? padding,
  childSoftWrap: t < 0.5 ? childSoftWrap : other.childSoftWrap,
  childOverflow: t < 0.5 ? childOverflow : other.childOverflow,
  childMaxLines: t < 0.5 ? childMaxLines : other.childMaxLines,
  childTextHeightBehavior: t < 0.5 ? childTextHeightBehavior : other.childTextHeightBehavior,
  prefixIconSpacing: lerpDouble(prefixIconSpacing, other.prefixIconSpacing, t) ?? prefixIconSpacing,
);