copyWith method
BetterButtonTheme
copyWith({
- double? fontSize,
- EdgeInsetsGeometry? padding,
- BorderRadiusGeometry? borderRadius,
- MainAxisAlignment? mainAxisAlignment,
- Color? defaultTextColor,
- Color? defaultBackgroundColor,
- Color? borderColor,
- Color? primaryTextColor,
- Color? infoTextColor,
- Color? successTextColor,
- Color? warningTextColor,
- Color? dangerTextColor,
- Color? loadingColor,
- Color? overlayColor,
- double? loadingStrokeWidth,
Implementation
BetterButtonTheme copyWith({
double? fontSize,
EdgeInsetsGeometry? padding,
BorderRadiusGeometry? borderRadius,
MainAxisAlignment? mainAxisAlignment,
Color? defaultTextColor,
Color? defaultBackgroundColor,
Color? borderColor,
Color? primaryTextColor,
Color? infoTextColor,
Color? successTextColor,
Color? warningTextColor,
Color? dangerTextColor,
Color? loadingColor,
Color? overlayColor,
double? loadingStrokeWidth,
}) {
return BetterButtonTheme(
fontSize: fontSize ?? this.fontSize,
padding: padding ?? this.padding,
borderRadius: borderRadius ?? this.borderRadius,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
defaultTextColor: defaultTextColor ?? this.defaultTextColor,
defaultBackgroundColor:
defaultBackgroundColor ?? this.defaultBackgroundColor,
borderColor: borderColor ?? this.borderColor,
primaryTextColor: primaryTextColor ?? this.primaryTextColor,
infoTextColor: infoTextColor ?? this.infoTextColor,
successTextColor: successTextColor ?? this.successTextColor,
warningTextColor: warningTextColor ?? this.warningTextColor,
dangerTextColor: dangerTextColor ?? this.dangerTextColor,
loadingColor: loadingColor ?? this.loadingColor,
overlayColor: overlayColor ?? this.overlayColor,
loadingStrokeWidth: loadingStrokeWidth ?? this.loadingStrokeWidth,
);
}