lerp static method
Implementation
static ZeroTooltipStyle lerp(
ZeroTooltipStyle? a, ZeroTooltipStyle? b, double t) {
return ZeroTooltipStyle(
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
lightBackgroundColor:
Color.lerp(a?.lightBackgroundColor, b?.lightBackgroundColor, t),
darkBackgroundColor:
Color.lerp(a?.darkBackgroundColor, b?.darkBackgroundColor, t),
textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t),
borderColor: Color.lerp(a?.borderColor, b?.backgroundColor, t),
duration: t < 0.5 ? a?.duration : b?.duration,
);
}