copyWith method

UIProThemeData copyWith({
  1. Color? primaryColor,
  2. Color? secondaryColor,
  3. Color? backgroundColor,
  4. Color? surfaceColor,
  5. Color? textColor,
  6. Color? textSecondaryColor,
  7. Color? errorColor,
  8. Color? successColor,
  9. Color? warningColor,
  10. Color? dividerColor,
  11. Color? disabledColor,
  12. String? fontFamily,
  13. double? fontSizeBase,
  14. double? fontSizeSmall,
  15. double? fontSizeLarge,
  16. double? fontSizeXLarge,
  17. FontWeight? fontWeightRegular,
  18. FontWeight? fontWeightMedium,
  19. FontWeight? fontWeightBold,
  20. double? letterSpacing,
  21. double? lineHeight,
  22. double? spacingXS,
  23. double? spacingSM,
  24. double? spacingMD,
  25. double? spacingLG,
  26. double? spacingXL,
  27. double? borderRadius,
  28. double? borderRadiusSmall,
  29. double? borderRadiusLarge,
  30. double? borderWidth,
  31. double? buttonHeight,
  32. double? buttonPaddingHorizontal,
  33. double? buttonPaddingVertical,
  34. double? buttonElevation,
  35. Color? buttonTextColor,
  36. Color? buttonDisabledColor,
  37. Color? buttonDisabledTextColor,
  38. Color? textFieldBackgroundColor,
  39. Color? textFieldBorderColor,
  40. Color? textFieldFocusedBorderColor,
  41. Color? textFieldHintColor,
  42. EdgeInsets? textFieldContentPadding,
  43. Color? shimmerBaseColor,
  44. Color? shimmerHighlightColor,
  45. Duration? shimmerDuration,
  46. double? shimmerBorderRadius,
  47. Color? appBarBackgroundColor,
  48. Color? appBarForegroundColor,
  49. double? appBarElevation,
  50. TextStyle? appBarTitleStyle,
  51. bool? appBarCenterTitle,
  52. Color? bottomNavBackgroundColor,
  53. Color? bottomNavSelectedColor,
  54. Color? bottomNavUnselectedColor,
  55. double? bottomNavElevation,
  56. double? bottomNavIconSize,
  57. bool? bottomNavShowLabels,
  58. double? bottomNavIndicatorHeight,
  59. Duration? animationDuration,
  60. Duration? animationDurationFast,
  61. Duration? animationDurationSlow,
  62. Curve? animationCurve,
})

Creates a copy of this theme data with the given fields replaced.

Implementation

UIProThemeData copyWith({
  Color? primaryColor,
  Color? secondaryColor,
  Color? backgroundColor,
  Color? surfaceColor,
  Color? textColor,
  Color? textSecondaryColor,
  Color? errorColor,
  Color? successColor,
  Color? warningColor,
  Color? dividerColor,
  Color? disabledColor,
  String? fontFamily,
  double? fontSizeBase,
  double? fontSizeSmall,
  double? fontSizeLarge,
  double? fontSizeXLarge,
  FontWeight? fontWeightRegular,
  FontWeight? fontWeightMedium,
  FontWeight? fontWeightBold,
  double? letterSpacing,
  double? lineHeight,
  double? spacingXS,
  double? spacingSM,
  double? spacingMD,
  double? spacingLG,
  double? spacingXL,
  double? borderRadius,
  double? borderRadiusSmall,
  double? borderRadiusLarge,
  double? borderWidth,
  double? buttonHeight,
  double? buttonPaddingHorizontal,
  double? buttonPaddingVertical,
  double? buttonElevation,
  Color? buttonTextColor,
  Color? buttonDisabledColor,
  Color? buttonDisabledTextColor,
  Color? textFieldBackgroundColor,
  Color? textFieldBorderColor,
  Color? textFieldFocusedBorderColor,
  Color? textFieldHintColor,
  EdgeInsets? textFieldContentPadding,
  Color? shimmerBaseColor,
  Color? shimmerHighlightColor,
  Duration? shimmerDuration,
  double? shimmerBorderRadius,
  Color? appBarBackgroundColor,
  Color? appBarForegroundColor,
  double? appBarElevation,
  TextStyle? appBarTitleStyle,
  bool? appBarCenterTitle,
  Color? bottomNavBackgroundColor,
  Color? bottomNavSelectedColor,
  Color? bottomNavUnselectedColor,
  double? bottomNavElevation,
  double? bottomNavIconSize,
  bool? bottomNavShowLabels,
  double? bottomNavIndicatorHeight,
  Duration? animationDuration,
  Duration? animationDurationFast,
  Duration? animationDurationSlow,
  Curve? animationCurve,
}) {
  return UIProThemeData(
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    surfaceColor: surfaceColor ?? this.surfaceColor,
    textColor: textColor ?? this.textColor,
    textSecondaryColor: textSecondaryColor ?? this.textSecondaryColor,
    errorColor: errorColor ?? this.errorColor,
    successColor: successColor ?? this.successColor,
    warningColor: warningColor ?? this.warningColor,
    dividerColor: dividerColor ?? this.dividerColor,
    disabledColor: disabledColor ?? this.disabledColor,
    fontFamily: fontFamily ?? this.fontFamily,
    fontSizeBase: fontSizeBase ?? this.fontSizeBase,
    fontSizeSmall: fontSizeSmall ?? this.fontSizeSmall,
    fontSizeLarge: fontSizeLarge ?? this.fontSizeLarge,
    fontSizeXLarge: fontSizeXLarge ?? this.fontSizeXLarge,
    fontWeightRegular: fontWeightRegular ?? this.fontWeightRegular,
    fontWeightMedium: fontWeightMedium ?? this.fontWeightMedium,
    fontWeightBold: fontWeightBold ?? this.fontWeightBold,
    letterSpacing: letterSpacing ?? this.letterSpacing,
    lineHeight: lineHeight ?? this.lineHeight,
    spacingXS: spacingXS ?? this.spacingXS,
    spacingSM: spacingSM ?? this.spacingSM,
    spacingMD: spacingMD ?? this.spacingMD,
    spacingLG: spacingLG ?? this.spacingLG,
    spacingXL: spacingXL ?? this.spacingXL,
    borderRadius: borderRadius ?? this.borderRadius,
    borderRadiusSmall: borderRadiusSmall ?? this.borderRadiusSmall,
    borderRadiusLarge: borderRadiusLarge ?? this.borderRadiusLarge,
    borderWidth: borderWidth ?? this.borderWidth,
    buttonHeight: buttonHeight ?? this.buttonHeight,
    buttonPaddingHorizontal:
        buttonPaddingHorizontal ?? this.buttonPaddingHorizontal,
    buttonPaddingVertical:
        buttonPaddingVertical ?? this.buttonPaddingVertical,
    buttonElevation: buttonElevation ?? this.buttonElevation,
    buttonTextColor: buttonTextColor ?? this.buttonTextColor,
    buttonDisabledColor: buttonDisabledColor ?? this.buttonDisabledColor,
    buttonDisabledTextColor:
        buttonDisabledTextColor ?? this.buttonDisabledTextColor,
    textFieldBackgroundColor:
        textFieldBackgroundColor ?? this.textFieldBackgroundColor,
    textFieldBorderColor: textFieldBorderColor ?? this.textFieldBorderColor,
    textFieldFocusedBorderColor:
        textFieldFocusedBorderColor ?? this.textFieldFocusedBorderColor,
    textFieldHintColor: textFieldHintColor ?? this.textFieldHintColor,
    textFieldContentPadding:
        textFieldContentPadding ?? this.textFieldContentPadding,
    shimmerBaseColor: shimmerBaseColor ?? this.shimmerBaseColor,
    shimmerHighlightColor:
        shimmerHighlightColor ?? this.shimmerHighlightColor,
    shimmerDuration: shimmerDuration ?? this.shimmerDuration,
    shimmerBorderRadius: shimmerBorderRadius ?? this.shimmerBorderRadius,
    appBarBackgroundColor:
        appBarBackgroundColor ?? this.appBarBackgroundColor,
    appBarForegroundColor:
        appBarForegroundColor ?? this.appBarForegroundColor,
    appBarElevation: appBarElevation ?? this.appBarElevation,
    appBarTitleStyle: appBarTitleStyle ?? this.appBarTitleStyle,
    appBarCenterTitle: appBarCenterTitle ?? this.appBarCenterTitle,
    bottomNavBackgroundColor:
        bottomNavBackgroundColor ?? this.bottomNavBackgroundColor,
    bottomNavSelectedColor:
        bottomNavSelectedColor ?? this.bottomNavSelectedColor,
    bottomNavUnselectedColor:
        bottomNavUnselectedColor ?? this.bottomNavUnselectedColor,
    bottomNavElevation: bottomNavElevation ?? this.bottomNavElevation,
    bottomNavIconSize: bottomNavIconSize ?? this.bottomNavIconSize,
    bottomNavShowLabels: bottomNavShowLabels ?? this.bottomNavShowLabels,
    bottomNavIndicatorHeight:
        bottomNavIndicatorHeight ?? this.bottomNavIndicatorHeight,
    animationDuration: animationDuration ?? this.animationDuration,
    animationDurationFast:
        animationDurationFast ?? this.animationDurationFast,
    animationDurationSlow:
        animationDurationSlow ?? this.animationDurationSlow,
    animationCurve: animationCurve ?? this.animationCurve,
  );
}