copyWith method
AuthButtonStyle
copyWith({
- Color? buttonColor,
- Color? splashColor,
- double? elevation,
- double? borderRadius,
- EdgeInsets? padding,
- 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,
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,
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,
}) {
return AuthButtonStyle(
buttonColor: buttonColor ?? this.buttonColor,
splashColor: splashColor ?? this.splashColor,
elevation: elevation ?? this.elevation,
borderRadius: borderRadius ?? this.borderRadius,
padding: padding ?? this.padding,
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,
);
}