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,
  dividerColor: .lerpColor(dividerColor, other.dividerColor, t),
  dividerWidth: lerpDouble(dividerWidth, other.dividerWidth, t) ?? dividerWidth,
  tileStyles: .lerpWhere(tileStyles, other.tileStyles, t, (a, b, t) => a!.lerp(b!, 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,
  labelMotion: labelMotion.lerp(other.labelMotion, t),
  labelTextStyle: .lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: .lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: .lerpTextStyle(errorTextStyle, other.errorTextStyle, t),
);