lerp static method
Implementation
static ZeroNavigationRailStyle lerp(
ZeroNavigationRailStyle? a, ZeroNavigationRailStyle? b, double t) {
return ZeroNavigationRailStyle(
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
activeColor: Color.lerp(a?.activeColor, b?.activeColor, t),
inactiveColor: Color.lerp(a?.inactiveColor, b?.inactiveColor, t),
indicatorColor: Color.lerp(a?.indicatorColor, b?.indicatorColor, t),
width: t < 0.5 ? a?.width : b?.width,
labelStyle: TextStyle.lerp(a?.labelStyle, b?.labelStyle, t),
activeLabelStyle:
TextStyle.lerp(a?.activeLabelStyle, b?.activeLabelStyle, t),
indicatorBorderRadius: BorderRadius.lerp(
a?.indicatorBorderRadius, b?.indicatorBorderRadius, t),
);
}