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) => .new(
  textStyle: .lerpTextStyle(textStyle, other.textStyle, t),
  iconStyle: .lerpIconThemeData(iconStyle, other.iconStyle, t),
  circularProgressStyle: .lerpWhere(
    circularProgressStyle,
    other.circularProgressStyle,
    t,
    (a, b, t) => a!.lerp(b!, t),
  ),
  padding: .lerp(padding, other.padding, t) ?? padding,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
);