lerp method

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

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

Implementation

@useResult
FDialogContentStyle lerp(FDialogContentStyle other, double t) => .new(
  titleTextStyle: .lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  bodyTextStyle: .lerp(bodyTextStyle, other.bodyTextStyle, t) ?? bodyTextStyle,
  padding: .lerp(padding, other.padding, t) ?? padding,
  titlePadding: .lerp(titlePadding, other.titlePadding, t) ?? titlePadding,
  bodyPadding: .lerp(bodyPadding, other.bodyPadding, t) ?? bodyPadding,
  imageSpacing: lerpDouble(imageSpacing, other.imageSpacing, t) ?? imageSpacing,
  titleSpacing: lerpDouble(titleSpacing, other.titleSpacing, t) ?? titleSpacing,
  contentSpacing: lerpDouble(contentSpacing, other.contentSpacing, t) ?? contentSpacing,
  actionSpacing: lerpDouble(actionSpacing, other.actionSpacing, t) ?? actionSpacing,
  expandActions: t < 0.5 ? expandActions : other.expandActions,
);