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) => FAlertStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  iconStyle: IconThemeData.lerp(iconStyle, other.iconStyle, t),
  titleTextStyle: TextStyle.lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  subtitleTextStyle: TextStyle.lerp(subtitleTextStyle, other.subtitleTextStyle, t) ?? subtitleTextStyle,
);