lerp static method
Implementation
static ZeroButtonStyle lerp(
ZeroButtonStyle? a, ZeroButtonStyle? b, double t) {
return ZeroButtonStyle(
foregroundColor: Color.lerp(a?.foregroundColor, b?.foregroundColor, t),
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
disabledForegroundColor:
Color.lerp(a?.disabledForegroundColor, b?.disabledForegroundColor, t),
disabledBackgroundColor:
Color.lerp(a?.disabledBackgroundColor, b?.disabledBackgroundColor, t),
shadowColor: Color.lerp(a?.shadowColor, b?.shadowColor, t),
surfaceTintColor: Color.lerp(a?.surfaceTintColor, b?.surfaceTintColor, t),
elevation: t < 0.5 ? a?.elevation : b?.elevation,
textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t),
padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t),
minimumSize: Size.lerp(a?.minimumSize, b?.minimumSize, t),
fixedSize: Size.lerp(a?.fixedSize, b?.fixedSize, t),
maximumSize: Size.lerp(a?.maximumSize, b?.maximumSize, t),
side: t < 0.5 ? a?.side : b?.side,
shape: OutlinedBorder.lerp(a?.shape, b?.shape, t),
visualDensity: t < 0.5 ? a?.visualDensity : b?.visualDensity,
tapTargetSize: t < 0.5 ? a?.tapTargetSize : b?.tapTargetSize,
animationDuration: t < 0.5 ? a?.animationDuration : b?.animationDuration,
enableFeedback: t < 0.5 ? a?.enableFeedback : b?.enableFeedback,
alignment: t < 0.5 ? a?.alignment : b?.alignment,
splashFactory: t < 0.5 ? a?.splashFactory : b?.splashFactory,
animatingColor: Color.lerp(a?.animatingColor, b?.animatingColor, t),
);
}