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) => FDialogStyle(
  backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  insetPadding: EdgeInsetsGeometry.lerp(insetPadding, other.insetPadding, t) ?? insetPadding,
  horizontalStyle: horizontalStyle.lerp(other.horizontalStyle, t),
  verticalStyle: verticalStyle.lerp(other.verticalStyle, t),
  motion: motion.lerp(other.motion, t),
);