lerp method

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

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

Implementation

@useResult
FDialogStyle lerp(FDialogStyle other, double t) => .new(
  backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
  decoration: .lerp(decoration, other.decoration, t) ?? decoration,
  titleTextStyle: .lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  bodyTextStyle: .lerp(bodyTextStyle, other.bodyTextStyle, t) ?? bodyTextStyle,
  insetPadding: .lerp(insetPadding, other.insetPadding, t) ?? insetPadding,
  slidePressHapticFeedback: t < 0.5 ? slidePressHapticFeedback : other.slidePressHapticFeedback,
  motion: motion.lerp(other.motion, t),
);