lerp method

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

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

Implementation

@useResult
FBadgeContentStyle lerp(FBadgeContentStyle other, double t) => .new(
  labelTextStyle: .lerp(labelTextStyle, other.labelTextStyle, t) ?? labelTextStyle,
  padding: .lerp(padding, other.padding, t) ?? padding,
);