lerp static method
Implementation
static ButtonStyle lerp(ButtonStyle? a, ButtonStyle? b, double t) {
return ButtonStyle(
textStyle:
ButtonState.lerp(a?.textStyle, b?.textStyle, t, TextStyle.lerp),
backgroundColor: ButtonState.lerp(
a?.backgroundColor, b?.backgroundColor, t, Color.lerp),
foregroundColor: ButtonState.lerp(
a?.foregroundColor, b?.foregroundColor, t, Color.lerp),
shadowColor:
ButtonState.lerp(a?.shadowColor, b?.shadowColor, t, Color.lerp),
elevation: ButtonState.lerp(a?.elevation, b?.elevation, t, lerpDouble),
padding:
ButtonState.lerp(a?.padding, b?.padding, t, EdgeInsetsGeometry.lerp),
shape: ButtonState.lerp(a?.shape, b?.shape, t, ShapeBorder.lerp),
iconSize: ButtonState.lerp(a?.iconSize, b?.iconSize, t, lerpDouble),
);
}