lerp method

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

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

Implementation

@useResult
FAlertStyle lerp(FAlertStyle other, double t) => .new(
  decoration: .lerp(decoration, other.decoration, t) ?? decoration,
  padding: .lerp(padding, other.padding, t) ?? padding,
  iconStyle: .lerp(iconStyle, other.iconStyle, t),
  titleTextStyle: .lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  subtitleTextStyle: .lerp(subtitleTextStyle, other.subtitleTextStyle, t) ?? subtitleTextStyle,
);