lerp method

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

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

Implementation

@useResult
FButtonContentStyle lerp(FButtonContentStyle other, double t) => FButtonContentStyle(
  textStyle: FWidgetStateMap.lerpTextStyle(textStyle, other.textStyle, t),
  iconStyle: FWidgetStateMap.lerpIconThemeData(iconStyle, other.iconStyle, t),
  circularProgressStyle: t < 0.5 ? circularProgressStyle : other.circularProgressStyle,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
);