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) => .new(
  decoration: .lerp(decoration, other.decoration, t) ?? decoration,
  tileStyle: tileStyle.lerp(other.tileStyle, t),
  dividerColor: .lerpColor(dividerColor, other.dividerColor, t),
  dividerWidth: lerpDouble(dividerWidth, other.dividerWidth, t) ?? dividerWidth,
  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,
);