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) => FBadgeContentStyle(
  labelTextStyle: TextStyle.lerp(labelTextStyle, other.labelTextStyle, t) ?? labelTextStyle,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
);