copyWith method
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,
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,
);
}