lerp method

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

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

Implementation

@useResult
FTileGroupStyle lerp(FTileGroupStyle other, double t) => FTileGroupStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  tileStyle: tileStyle.lerp(other.tileStyle, t),
  dividerColor: FWidgetStateMap.lerpColor(dividerColor, other.dividerColor, t),
  dividerWidth: lerpDouble(dividerWidth, other.dividerWidth, t) ?? dividerWidth,
  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,
);