lerp method

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

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

Implementation

@useResult
FBadgeStyle lerp(FBadgeStyle other, double t) => FBadgeStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  contentStyle: contentStyle.lerp(other.contentStyle, t),
);