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) => FSelectMenuTileStyle(
  menuStyle: menuStyle.lerp(other.menuStyle, t),
  tileStyle: tileStyle.lerp(other.tileStyle, t),
  labelPadding: EdgeInsetsGeometry.lerp(labelPadding, other.labelPadding, t) ?? labelPadding,
  descriptionPadding: EdgeInsetsGeometry.lerp(descriptionPadding, other.descriptionPadding, t) ?? descriptionPadding,
  errorPadding: EdgeInsetsGeometry.lerp(errorPadding, other.errorPadding, t) ?? errorPadding,
  childPadding: EdgeInsetsGeometry.lerp(childPadding, other.childPadding, t) ?? childPadding,
  labelTextStyle: FWidgetStateMap.lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: FWidgetStateMap.lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: TextStyle.lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);