copyWith method

BetterButtonTheme copyWith({
  1. double? fontSize,
  2. EdgeInsetsGeometry? padding,
  3. BorderRadiusGeometry? borderRadius,
  4. MainAxisAlignment? mainAxisAlignment,
  5. Color? defaultTextColor,
  6. Color? defaultBackgroundColor,
  7. Color? borderColor,
  8. Color? primaryTextColor,
  9. Color? infoTextColor,
  10. Color? successTextColor,
  11. Color? warningTextColor,
  12. Color? dangerTextColor,
  13. Color? loadingColor,
  14. Color? overlayColor,
  15. 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,
  );
}