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,
  actionSpacing: lerpDouble(actionSpacing, other.actionSpacing, t) ?? actionSpacing,
);