GradientButtonStyle.copyWith constructor

GradientButtonStyle.copyWith({
  1. Gradient? gradient,
  2. ButtonStyle? style,
})

Implementation

factory GradientButtonStyle.copyWith(
    {Gradient? gradient, ButtonStyle? style}) {
  return GradientButtonStyle(
    gradient: gradient,
    padding: style?.padding,
    overlayColor: style?.overlayColor,
    mouseCursor: style?.mouseCursor,
    minimumSize: style?.minimumSize,
    maximumSize: style?.maximumSize,
    iconSize: style?.iconSize,
    iconColor: style?.iconColor,
    foregroundColor: style?.foregroundColor,
    fixedSize: style?.fixedSize,
    enableFeedback: style?.enableFeedback,
    elevation: style?.elevation,
    animationDuration: style?.animationDuration,
    alignment: style?.alignment,
    shadowColor: style?.shadowColor,
    shape: style?.shape,
    side: style?.side,
    splashFactory: style?.splashFactory,
    surfaceTintColor: style?.surfaceTintColor,
    tapTargetSize: style?.tapTargetSize,
    textStyle: style?.textStyle,
    visualDensity: style?.visualDensity,
  );
}