lerp method

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

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

Implementation

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