lerp method

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

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

Implementation

@useResult
FTooltipStyle lerp(FTooltipStyle other, double t) => FTooltipStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
  padding: EdgeInsets.lerp(padding, other.padding, t) ?? padding,
  textStyle: TextStyle.lerp(textStyle, other.textStyle, t) ?? textStyle,
);