lerp method

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

Implementation

@useResult
FMultiSelectFieldStyle lerp(FMultiSelectFieldStyle other, double t) => FMultiSelectFieldStyle(
  decoration: t < 0.5 ? decoration : other.decoration,
  contentPadding: EdgeInsetsGeometry.lerp(contentPadding, other.contentPadding, t) ?? contentPadding,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
  runSpacing: lerpDouble(runSpacing, other.runSpacing, t) ?? runSpacing,
  hintTextStyle: FWidgetStateMap.lerpTextStyle(hintTextStyle, other.hintTextStyle, t),
  hintPadding: EdgeInsetsGeometry.lerp(hintPadding, other.hintPadding, t) ?? hintPadding,
  iconStyle: IconThemeData.lerp(iconStyle, other.iconStyle, t),
  clearButtonStyle: clearButtonStyle.lerp(other.clearButtonStyle, t),
  clearButtonPadding: EdgeInsetsGeometry.lerp(clearButtonPadding, other.clearButtonPadding, t) ?? clearButtonPadding,
  tappableStyle: tappableStyle.lerp(other.tappableStyle, 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,
);