lerp method
Implementation
TermosTabBarEffects lerp(TermosTabBarEffects other, double t) {
return TermosTabBarEffects(
glowColorMixWithWhite:
lerpDouble(glowColorMixWithWhite, other.glowColorMixWithWhite, t)!,
dotGridPrimaryMixWithWhite: lerpDouble(
dotGridPrimaryMixWithWhite,
other.dotGridPrimaryMixWithWhite,
t,
)!,
dotGridPrimaryAlphaLight: lerpDouble(
dotGridPrimaryAlphaLight,
other.dotGridPrimaryAlphaLight,
t,
)!,
dotGridPrimaryAlphaDark: lerpDouble(
dotGridPrimaryAlphaDark,
other.dotGridPrimaryAlphaDark,
t,
)!,
glowShellBaseOpacityLight: lerpDouble(
glowShellBaseOpacityLight,
other.glowShellBaseOpacityLight,
t,
)!,
glowShellBaseOpacityDark: lerpDouble(
glowShellBaseOpacityDark,
other.glowShellBaseOpacityDark,
t,
)!,
dotGridExpansionMs: lerpDouble(
dotGridExpansionMs.toDouble(),
other.dotGridExpansionMs.toDouble(),
t,
)!.round(),
dotGridDecayMs: lerpDouble(
dotGridDecayMs.toDouble(),
other.dotGridDecayMs.toDouble(),
t,
)!.round(),
glowSpread: lerpDouble(glowSpread, other.glowSpread, t)!,
glowCore: lerpDouble(glowCore, other.glowCore, t)!,
glowHaloSpread: lerpDouble(glowHaloSpread, other.glowHaloSpread, t)!,
glowHaloCore: lerpDouble(glowHaloCore, other.glowHaloCore, t)!,
glowHaloAlpha: lerpDouble(glowHaloAlpha, other.glowHaloAlpha, t)!,
glowHaloStrokeBoost:
lerpDouble(glowHaloStrokeBoost, other.glowHaloStrokeBoost, t)!,
glowHaloBlurSigma:
lerpDouble(glowHaloBlurSigma, other.glowHaloBlurSigma, t)!,
glowHaloCornerRadius:
lerpDouble(glowHaloCornerRadius, other.glowHaloCornerRadius, t)!,
dotsHeightFraction:
lerpDouble(dotsHeightFraction, other.dotsHeightFraction, t)!,
scrollAnimationMs: lerpDouble(
scrollAnimationMs.toDouble(),
other.scrollAnimationMs.toDouble(),
t,
)!.round(),
);
}