copyWith method Null safety

AuthButtonStyle copyWith(
  1. {Color? buttonColor,
  2. Color? splashColor,
  3. double? elevation,
  4. double? borderRadius,
  5. EdgeInsets? padding,
  6. EdgeInsets? margin,
  7. TextStyle? textStyle,
  8. Color? borderColor,
  9. double? borderWidth,
  10. AuthButtonType? buttonType,
  11. double? width,
  12. double? height,
  13. double? iconSize,
  14. double? separator,
  15. Color? iconBackground,
  16. AuthIconType? iconType,
  17. Color? shadowColor,
  18. Color? progressIndicatorColor,
  19. Color? progressIndicatorValueColor,
  20. double? progressIndicatorStrokeWidth,
  21. double? progressIndicatorValue,
  22. Color? iconColor,
  23. AuthIndicatorType? progressIndicatorType,
  24. VisualDensity? visualDensity,
  25. MaterialTapTargetSize? tapTargetSize}
)

Returns a copy of this AuthButtonStyle with the given fields replaced with the new values.

Implementation

AuthButtonStyle copyWith({
  Color? buttonColor,
  Color? splashColor,
  double? elevation,
  double? borderRadius,
  EdgeInsets? padding,
  EdgeInsets? margin,
  TextStyle? textStyle,
  Color? borderColor,
  double? borderWidth,
  AuthButtonType? buttonType,
  double? width,
  double? height,
  double? iconSize,
  double? separator,
  Color? iconBackground,
  AuthIconType? iconType,
  Color? shadowColor,
  Color? progressIndicatorColor,
  Color? progressIndicatorValueColor,
  double? progressIndicatorStrokeWidth,
  double? progressIndicatorValue,
  Color? iconColor,
  AuthIndicatorType? progressIndicatorType,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? tapTargetSize,
}) {
  return AuthButtonStyle(
    buttonColor: buttonColor ?? this.buttonColor,
    splashColor: splashColor ?? this.splashColor,
    elevation: elevation ?? this.elevation,
    borderRadius: borderRadius ?? this.borderRadius,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    textStyle: textStyle ?? this.textStyle,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    buttonType: buttonType ?? this.buttonType,
    width: width ?? this.width,
    height: height ?? this.height,
    iconSize: iconSize ?? this.iconSize,
    separator: separator ?? this.separator,
    iconBackground: iconBackground ?? this.iconBackground,
    iconType: iconType ?? this.iconType,
    shadowColor: shadowColor ?? this.shadowColor,
    progressIndicatorColor:
        progressIndicatorColor ?? this.progressIndicatorColor,
    progressIndicatorValueColor:
        progressIndicatorValueColor ?? this.progressIndicatorValueColor,
    progressIndicatorStrokeWidth:
        progressIndicatorStrokeWidth ?? this.progressIndicatorStrokeWidth,
    progressIndicatorValue:
        progressIndicatorValue ?? this.progressIndicatorValue,
    iconColor: iconColor ?? this.iconColor,
    progressIndicatorType:
        progressIndicatorType ?? this.progressIndicatorType,
    visualDensity: visualDensity ?? this.visualDensity,
    tapTargetSize: tapTargetSize ?? this.tapTargetSize,
  );
}