copyWith method

FeedbackOSTheme copyWith({
  1. Color? primaryColor,
  2. Color? primaryLightColor,
  3. Color? primaryDarkColor,
  4. Color? primaryLightBorderColor,
  5. Color? onPrimaryColor,
  6. Color? backgroundColor,
  7. Color? surfaceColor,
  8. Color? secondaryBackgroundColor,
  9. Color? borderColor,
  10. Color? borderMutedColor,
  11. Color? titleColor,
  12. Color? textColor,
  13. Color? secondaryTextColor,
  14. Color? mutedTextColor,
  15. Color? placeholderColor,
  16. Color? errorColor,
  17. Color? errorBackgroundColor,
  18. Color? successColor,
  19. Color? successBackgroundColor,
  20. Color? warningColor,
  21. Color? warningBackgroundColor,
  22. Color? infoColor,
  23. Color? infoBackgroundColor,
  24. Color? buttonColor,
  25. Color? disabledButtonColor,
  26. Color? statusOpenColor,
  27. Color? statusPlannedColor,
  28. Color? statusInProgressColor,
  29. Color? statusShippedColor,
  30. Color? statusClosedColor,
})

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

Implementation

FeedbackOSTheme copyWith({
  Color? primaryColor,
  Color? primaryLightColor,
  Color? primaryDarkColor,
  Color? primaryLightBorderColor,
  Color? onPrimaryColor,
  Color? backgroundColor,
  Color? surfaceColor,
  Color? secondaryBackgroundColor,
  Color? borderColor,
  Color? borderMutedColor,
  Color? titleColor,
  Color? textColor,
  Color? secondaryTextColor,
  Color? mutedTextColor,
  Color? placeholderColor,
  Color? errorColor,
  Color? errorBackgroundColor,
  Color? successColor,
  Color? successBackgroundColor,
  Color? warningColor,
  Color? warningBackgroundColor,
  Color? infoColor,
  Color? infoBackgroundColor,
  Color? buttonColor,
  Color? disabledButtonColor,
  Color? statusOpenColor,
  Color? statusPlannedColor,
  Color? statusInProgressColor,
  Color? statusShippedColor,
  Color? statusClosedColor,
}) {
  return FeedbackOSTheme(
    primaryColor: primaryColor ?? this.primaryColor,
    primaryLightColor: primaryLightColor ?? this.primaryLightColor,
    primaryDarkColor: primaryDarkColor ?? this.primaryDarkColor,
    primaryLightBorderColor:
        primaryLightBorderColor ?? this.primaryLightBorderColor,
    onPrimaryColor: onPrimaryColor ?? this.onPrimaryColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    surfaceColor: surfaceColor ?? this.surfaceColor,
    secondaryBackgroundColor:
        secondaryBackgroundColor ?? this.secondaryBackgroundColor,
    borderColor: borderColor ?? this.borderColor,
    borderMutedColor: borderMutedColor ?? this.borderMutedColor,
    titleColor: titleColor ?? this.titleColor,
    textColor: textColor ?? this.textColor,
    secondaryTextColor: secondaryTextColor ?? this.secondaryTextColor,
    mutedTextColor: mutedTextColor ?? this.mutedTextColor,
    placeholderColor: placeholderColor ?? this.placeholderColor,
    errorColor: errorColor ?? this.errorColor,
    errorBackgroundColor: errorBackgroundColor ?? this.errorBackgroundColor,
    successColor: successColor ?? this.successColor,
    successBackgroundColor:
        successBackgroundColor ?? this.successBackgroundColor,
    warningColor: warningColor ?? this.warningColor,
    warningBackgroundColor:
        warningBackgroundColor ?? this.warningBackgroundColor,
    infoColor: infoColor ?? this.infoColor,
    infoBackgroundColor: infoBackgroundColor ?? this.infoBackgroundColor,
    buttonColor: buttonColor ?? this.buttonColor,
    disabledButtonColor: disabledButtonColor ?? this.disabledButtonColor,
    statusOpenColor: statusOpenColor ?? this.statusOpenColor,
    statusPlannedColor: statusPlannedColor ?? this.statusPlannedColor,
    statusInProgressColor:
        statusInProgressColor ?? this.statusInProgressColor,
    statusShippedColor: statusShippedColor ?? this.statusShippedColor,
    statusClosedColor: statusClosedColor ?? this.statusClosedColor,
  );
}