Implementation
UpStyle copyWith(UpStyle override) {
return UpStyle(
// General
backgroundColor: override.backgroundColor ?? backgroundColor,
circularProgressBarColor:
override.circularProgressBarColor ?? circularProgressBarColor,
borderColor: override.borderColor ?? borderColor,
iconColor: override.iconColor ?? iconColor,
borderWidth: override.borderWidth ?? borderWidth,
foregroundColor: override.foregroundColor ?? foregroundColor,
hoverBackgroundColor:
override.hoverBackgroundColor ?? hoverBackgroundColor,
hoveredBorderColor: override.hoveredBorderColor ?? hoveredBorderColor,
hoveredForegroundColor:
override.hoveredForegroundColor ?? hoveredForegroundColor,
isDisabled: override.isDisabled ?? isDisabled,
focusedBorderColor: override.focusedBorderColor ?? focusedBorderColor,
errorBorderColor: override.errorBorderColor ?? errorBorderColor,
isRounded: override.isRounded ?? isRounded,
iconSize: override.iconSize ?? iconSize,
borderRadius: override.borderRadius ?? borderRadius,
disabledBorderColor: override.disabledBorderColor ?? disabledBorderColor,
disabledBackgroundColor:
override.disabledBackgroundColor ?? disabledBackgroundColor,
disabledForgroundColor:
override.disabledForgroundColor ?? disabledForgroundColor,
// Toast
toastBackgroundGradient:
override.toastBackgroundGradient ?? toastBackgroundGradient,
toastBackgroundColor:
override.toastBackgroundColor ?? toastBackgroundColor,
toastForegroundColor:
override.toastForegroundColor ?? toastForegroundColor,
toastIcon: override.toastIcon ?? toastIcon,
toastTextColor: override.toastTextColor ?? toastTextColor,
// Text
textBackgroundColor: override.textBackgroundColor ?? textBackgroundColor,
textColor: override.textColor ?? textColor,
textSize: override.textSize ?? textSize,
textWeight: override.textWeight ?? textWeight,
textFontStyle: override.textFontStyle ?? textFontStyle,
// Table
tableBorderColor: override.tableBorderColor ?? tableBorderColor,
tableRowColor: override.tableRowColor ?? tableRowColor,
tableRowFocusedColor:
override.tableRowFocusedColor ?? tableRowFocusedColor,
tableRowHoverColor: override.tableRowHoverColor ?? tableRowHoverColor,
tableRowPressedColor:
override.tableRowPressedColor ?? tableRowPressedColor,
tableHeaderColor: override.tableHeaderColor ?? tableHeaderColor,
tableFooterColor: override.tableFooterColor ?? tableFooterColor,
tableHeaderTextColor:
override.tableHeaderTextColor ?? tableHeaderTextColor,
tableFooterTextColor:
override.tableFooterTextColor ?? tableFooterTextColor,
// Appbar
appBarColor: override.appBarColor ?? appBarColor,
appBarTitleColor: override.appBarTitleColor ?? appBarTitleColor,
appBarTitleSize: override.appBarTitleSize ?? appBarTitleSize,
// Button
buttonTextSize: override.buttonTextSize ?? buttonTextSize,
textStrokeWidth: override.textStrokeWidth ?? textStrokeWidth,
textStrokeColor: override.textStrokeColor ?? textStrokeColor,
buttonBackgroundColor:
override.buttonBackgroundColor ?? buttonBackgroundColor,
buttonBorderColor: override.buttonBorderColor ?? buttonBorderColor,
buttonBorderRadius: override.buttonBorderRadius ?? buttonBorderRadius,
buttonBorderWidth: override.buttonBorderWidth ?? buttonBorderWidth,
buttonHoverBackgroundColor:
override.buttonHoverBackgroundColor ?? buttonHoverBackgroundColor,
buttonHoverBorderColor:
override.buttonHoverBorderColor ?? buttonHoverBorderColor,
buttonHoverTextColor:
override.buttonHoverTextColor ?? buttonHoverTextColor,
buttonTextFit: override.buttonTextFit ?? buttonTextFit,
buttonTextColor: override.buttonTextColor ?? buttonTextColor,
buttonDisabledBorderColor:
override.buttonDisabledBorderColor ?? buttonDisabledBorderColor,
buttonDisabledTextColor:
override.buttonDisabledTextColor ?? buttonDisabledTextColor,
buttonDisbaledBackgroundColor: override.buttonDisbaledBackgroundColor ??
buttonDisbaledBackgroundColor,
buttonBackgroundImage:
override.buttonBackgroundImage ?? buttonBackgroundImage,
buttonBackgroundGradient:
override.buttonBackgroundGradient ?? buttonBackgroundGradient,
buttonBorderBottomStyle:
override.buttonBorderBottomStyle ?? buttonBorderBottomStyle,
buttonBorderLeftStyle:
override.buttonBorderLeftStyle ?? buttonBorderLeftStyle,
buttonBorderRightStyle:
override.buttonBorderRightStyle ?? buttonBorderRightStyle,
buttonBorderTopStyle:
override.buttonBorderTopStyle ?? buttonBorderTopStyle,
buttonBorderStyle: override.buttonBorderStyle ?? buttonBorderStyle,
buttonHeight: override.buttonHeight ?? buttonHeight,
buttonWidth: override.buttonWidth ?? buttonWidth,
// Checkbox
checkboxBackgroundColor:
override.checkboxBackgroundColor ?? checkboxBackgroundColor,
checkboxBorderColor: override.checkboxBorderColor ?? checkboxBorderColor,
checkboxBorderRadius:
override.checkboxBorderRadius ?? checkboxBorderRadius,
checkboxBorderWidth: override.checkboxBorderWidth ?? checkboxBorderWidth,
checkboxHoverBorderColor:
override.checkboxHoverBorderColor ?? checkboxHoverBorderColor,
checkboxRippleColor: override.checkboxRippleColor ?? checkboxRippleColor,
checkboxLabelColor: override.checkboxLabelColor ?? checkboxLabelColor,
checkboxLabelSize: override.checkboxLabelSize ?? checkboxLabelSize,
checkboxCheckedColor:
override.checkboxCheckedColor ?? checkboxCheckedColor,
checkboxDisabledBackgroundColor:
override.checkboxDisabledBackgroundColor ??
checkboxDisabledBackgroundColor,
checkboxDisabledLabelColor:
override.checkboxDisabledLabelColor ?? checkboxDisabledLabelColor,
checkboxCheckedDisabledColor:
override.checkboxCheckedDisabledColor ?? checkboxCheckedDisabledColor,
// Radio button
radioButtonBorderColor:
override.radioButtonBorderColor ?? radioButtonBorderColor,
radioButtonDisabledBorderColor: override.radioButtonDisabledBorderColor ??
radioButtonDisabledBorderColor,
radioButtonDisabledFilledColor: override.radioButtonDisabledFilledColor ??
radioButtonDisabledFilledColor,
radioButtonBorderRadius:
override.radioButtonBorderRadius ?? radioButtonBorderRadius,
radioButtonBorderWidth:
override.radioButtonBorderWidth ?? radioButtonBorderWidth,
radioButtonFilledColor:
override.radioButtonFilledColor ?? radioButtonFilledColor,
radioButtonHoverBorderColor:
override.radioButtonHoverBorderColor ?? radioButtonHoverBorderColor,
radioButtonLabelColor:
override.radioButtonLabelColor ?? radioButtonLabelColor,
radioButtonLabelSize:
override.radioButtonLabelSize ?? radioButtonLabelSize,
radioButtonRippleColor:
override.radioButtonRippleColor ?? radioButtonRippleColor,
radioButtonDisabledLabelColor: override.radioButtonDisabledLabelColor ??
radioButtonDisabledLabelColor,
// Text field
textfieldBorderColor:
override.textfieldBorderColor ?? textfieldBorderColor,
textfieldErrorBorderColor:
override.textfieldErrorBorderColor ?? textfieldErrorBorderColor,
textfieldFocusedBorderColor:
override.textfieldFocusedBorderColor ?? textfieldFocusedBorderColor,
textfieldLabelColor: override.textfieldLabelColor ?? textfieldLabelColor,
textfieldBorderRadius:
override.textfieldBorderRadius ?? textfieldBorderRadius,
textfieldBorderWidth:
override.textfieldBorderWidth ?? textfieldBorderWidth,
textfieldCursorColor:
override.textfieldCursorColor ?? textfieldCursorColor,
textfieldLabelSize: override.textfieldLabelSize ?? textfieldLabelSize,
// Drodown
dropdownBorderWidth: override.dropdownBorderWidth ?? dropdownBorderWidth,
dropdownBorderColor: override.dropdownBorderColor ?? dropdownBorderColor,
dropdownBorderRadius:
override.dropdownBorderRadius ?? dropdownBorderRadius,
dropdownErrorBorderColor:
override.dropdownErrorBorderColor ?? dropdownErrorBorderColor,
dropdownFocusedBorderColor:
override.dropdownFocusedBorderColor ?? dropdownFocusedBorderColor,
dropdownLabelColor: override.dropdownLabelColor ?? dropdownLabelColor,
dropdownLabelSize: override.dropdownLabelSize ?? dropdownLabelSize,
// Datepicker
datePickerDialogBackgroundColor:
override.datePickerDialogBackgroundColor ??
datePickerDialogBackgroundColor,
datePickerOnPrimaryColor:
override.datePickerOnPrimaryColor ?? datePickerOnPrimaryColor,
datePickerOnSurfaceColor:
override.datePickerOnSurfaceColor ?? datePickerOnSurfaceColor,
datePickerPrimaryColor:
override.datePickerPrimaryColor ?? datePickerPrimaryColor,
datePickerSurfaceColor:
override.datePickerSurfaceColor ?? datePickerSurfaceColor,
// Time picker
timePickerDialogBackgroundColor:
override.timePickerDialogBackgroundColor ??
timePickerDialogBackgroundColor,
timePickerOnPrimaryColor:
override.timePickerOnPrimaryColor ?? timePickerOnPrimaryColor,
timePickerOnSurfaceColor:
override.timePickerOnSurfaceColor ?? timePickerOnSurfaceColor,
timePickerPrimaryColor:
override.timePickerPrimaryColor ?? timePickerPrimaryColor,
timePickerSurfaceColor:
override.timePickerSurfaceColor ?? timePickerSurfaceColor,
);
}