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,
  insetPadding: .lerp(insetPadding, other.insetPadding, t) ?? insetPadding,
  contentStyle: .lerpWhere(contentStyle, other.contentStyle, t, (a, b, t) => a!.lerp(b!, t)),
  motion: motion.lerp(other.motion, t),
);