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) => FDialogContentStyle(
  titleTextStyle: TextStyle.lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  bodyTextStyle: TextStyle.lerp(bodyTextStyle, other.bodyTextStyle, t) ?? bodyTextStyle,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  actionSpacing: lerpDouble(actionSpacing, other.actionSpacing, t) ?? actionSpacing,
);