lerp method

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

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

Implementation

@useResult
FSelectMenuTileStyle lerp(FSelectMenuTileStyle other, double t) => .new(
  menuStyle: menuStyle.lerp(other.menuStyle, t),
  tileStyle: tileStyle.lerp(other.tileStyle, t),
  labelPadding: .lerp(labelPadding, other.labelPadding, t) ?? labelPadding,
  descriptionPadding: .lerp(descriptionPadding, other.descriptionPadding, t) ?? descriptionPadding,
  errorPadding: .lerp(errorPadding, other.errorPadding, t) ?? errorPadding,
  childPadding: .lerp(childPadding, other.childPadding, t) ?? childPadding,
  labelTextStyle: .lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: .lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: .lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);