lerp method
Interpolates between two styles for animated theme transitions.
Implementation
FdcGridPopupMenuStyle lerp(FdcGridPopupMenuStyle other, double t) {
return FdcGridPopupMenuStyle(
backgroundColor: Color.lerp(backgroundColor, other.backgroundColor, t),
borderColor: Color.lerp(borderColor, other.borderColor, t),
shadowColor: Color.lerp(shadowColor, other.shadowColor, t),
textColor: Color.lerp(textColor, other.textColor, t),
secondaryTextColor: Color.lerp(
secondaryTextColor,
other.secondaryTextColor,
t,
),
iconColor: Color.lerp(iconColor, other.iconColor, t),
disabledTextColor: Color.lerp(
disabledTextColor,
other.disabledTextColor,
t,
),
disabledIconColor: Color.lerp(
disabledIconColor,
other.disabledIconColor,
t,
),
hoverColor: Color.lerp(hoverColor, other.hoverColor, t),
selectedItemColor: Color.lerp(
selectedItemColor,
other.selectedItemColor,
t,
),
pressedColor: Color.lerp(pressedColor, other.pressedColor, t),
separatorColor: Color.lerp(separatorColor, other.separatorColor, t),
);
}