copyWith method
ZeroThemeData
copyWith({
- Brightness? brightness,
- ZeroTypography? typography,
- bool? useMaterial3,
- String? fontFamily,
- AccentColor? primaryColor,
- Color? inactiveBackgroundColor,
- Color? disabledColor,
- Color? scaffoldBackgroundColor,
- Color? uncheckedColor,
- Color? checkedColor,
- Color? cardColor,
- Color? disabledBackgroundColor,
- Color? successColor,
- Color? infoColor,
- Color? warningColor,
- Color? errorColor,
- Color? dividerColor,
- Color? solidTextColor,
- Color? regularTextColor,
- ColorScheme? colorScheme,
- IconThemeData? iconTheme,
- DialogTheme? dialogTheme,
- ButtonThemeData? buttonTheme,
- InputDecorationTheme? inputDecorationTheme,
- ZeroListTileStyle? listTileStyle,
- ZeroButtonStyle? primaryButtonStyle,
- ZeroButtonStyle? secondaryButtonStyle,
- ZeroButtonStyle? textButtonStyle,
- ZeroDividerStyle? dividerStyle,
- ZeroChipFilledStyle? chipFilledStyle,
- ZeroChipOutlinedStyle? chipOutlinedStyle,
- ZeroTextfieldStyleSet? textfieldStyleSet,
- ZeroAppBarStyle? appBarStyle,
- ZeroCardStyle? cardStyle,
- ZeroButtonIconStyleSet? buttonIconStyle,
- ZeroSwitchStyleSet? switchStyle,
- ZeroTabBarStyle? tabBarStyle,
- ZeroSpeedDialStyle? speedDialStyle,
- ZeroCheckboxStyle? checkboxStyle,
- ZeroRadioStyle? radioStyle,
- ZeroProgressStyle? progressStyle,
- ZeroRatingStyle? ratingStyle,
- ZeroSliderStyle? sliderStyle,
- ZeroAvatarStyle? avatarStyle,
- ZeroButtonGroupStyleSet? buttonGroupStyle,
- ZeroTooltipStyle? tooltipStyle,
- ZeroSkeletonStyleSet? skeletonStyle,
- ZeroAlertDialogStyle? alertDialogStyle,
- ZeroStepStyle? stepStyle,
- ZeroStepperStyle? stepperStyle,
- ZeroSnackbarStyleSet? snackBarStyle,
- ZeroTimePickerStyle? timePickerStyle,
- ZeroDatePickerStyle? datePickerStyle,
- ZeroBottomSheetStyle? bottomSheetStyle,
Implementation
ZeroThemeData copyWith({
Brightness? brightness,
ZeroTypography? typography,
bool? useMaterial3,
String? fontFamily,
AccentColor? primaryColor,
Color? inactiveBackgroundColor,
Color? disabledColor,
Color? scaffoldBackgroundColor,
Color? uncheckedColor,
Color? checkedColor,
Color? cardColor,
Color? disabledBackgroundColor,
Color? successColor,
Color? infoColor,
Color? warningColor,
Color? errorColor,
Color? dividerColor,
Color? solidTextColor,
Color? regularTextColor,
ColorScheme? colorScheme,
IconThemeData? iconTheme,
DialogTheme? dialogTheme,
ButtonThemeData? buttonTheme,
InputDecorationTheme? inputDecorationTheme,
ZeroListTileStyle? listTileStyle,
ZeroButtonStyle? primaryButtonStyle,
ZeroButtonStyle? secondaryButtonStyle,
ZeroButtonStyle? textButtonStyle,
ZeroDividerStyle? dividerStyle,
ZeroChipFilledStyle? chipFilledStyle,
ZeroChipOutlinedStyle? chipOutlinedStyle,
ZeroNavigationBarStyle? navigationBarStyle,
ZeroTextfieldStyleSet? textfieldStyleSet,
ZeroNavigationDrawerStyle? navigationDrawerStyle,
ZeroAppBarStyle? appBarStyle,
ZeroCardStyle? cardStyle,
ZeroButtonIconStyleSet? buttonIconStyle,
ZeroNavigationRailStyle? navigationRailStyle,
ZeroSwitchStyleSet? switchStyle,
ZeroTabBarStyle? tabBarStyle,
ZeroSpeedDialStyle? speedDialStyle,
ZeroCheckboxStyle? checkboxStyle,
ZeroRadioStyle? radioStyle,
ZeroProgressStyle? progressStyle,
ZeroRatingStyle? ratingStyle,
ZeroSliderStyle? sliderStyle,
ZeroAvatarStyle? avatarStyle,
ZeroButtonGroupStyleSet? buttonGroupStyle,
ZeroMenuStyle? menuStyle,
ZeroTooltipStyle? tooltipStyle,
ZeroSkeletonStyleSet? skeletonStyle,
ZeroAlertDialogStyle? alertDialogStyle,
ZeroStepStyle? stepStyle,
ZeroStepperStyle? stepperStyle,
ZeroSnackbarStyleSet? snackBarStyle,
ZeroTimePickerStyle? timePickerStyle,
ZeroDatePickerStyle? datePickerStyle,
ZeroBottomSheetStyle? bottomSheetStyle,
}) {
return ZeroThemeData.raw(
brightness: brightness ?? this.brightness,
typography: typography ?? this.typography,
fontFamily: fontFamily ?? this.fontFamily,
primaryColor: primaryColor ?? this.primaryColor,
uncheckedColor: uncheckedColor ?? this.uncheckedColor,
checkedColor: checkedColor ?? this.checkedColor,
disabledColor: disabledColor ?? this.disabledColor,
scaffoldBackgroundColor:
scaffoldBackgroundColor ?? this.scaffoldBackgroundColor,
colorScheme: colorScheme ?? this.colorScheme,
iconTheme: this.iconTheme.merge(iconTheme),
buttonTheme: buttonTheme ?? this.buttonTheme,
dialogTheme: dialogTheme ?? this.dialogTheme,
expansionTileStyle: expansionTileStyle,
cardColor: cardColor ?? this.cardColor,
successColor: successColor ?? this.successColor,
infoColor: infoColor ?? this.infoColor,
warningColor: warningColor ?? this.warningColor,
errorColor: errorColor ?? this.errorColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
dividerColor: dividerColor ?? this.dividerColor,
solidTextColor: solidTextColor ?? this.solidTextColor,
regularTextColor: regularTextColor ?? this.regularTextColor,
listTileStyle: listTileStyle ?? this.listTileStyle,
primaryButtonStyle: primaryButtonStyle ?? this.primaryButtonStyle,
secondaryButtonStyle: secondaryButtonStyle ?? this.secondaryButtonStyle,
textButtonStyle: textButtonStyle ?? this.textButtonStyle,
dividerStyle: dividerStyle ?? this.dividerStyle,
chipFilledStyle: chipFilledStyle ?? this.chipFilledStyle,
chipOutlinedStyle: chipOutlinedStyle ?? this.chipOutlinedStyle,
navigationBarStyle: navigationBarStyle ?? this.navigationBarStyle,
menuStyle: menuStyle ?? this.menuStyle,
textfieldStyleSet: textfieldStyleSet ?? this.textfieldStyleSet,
useMaterial3: useMaterial3 ?? this.useMaterial3,
navigationDrawerStyle:
navigationDrawerStyle ?? this.navigationDrawerStyle,
appBarStyle: appBarStyle ?? this.appBarStyle,
cardStyle: cardStyle ?? this.cardStyle,
buttonIconStyle: buttonIconStyle ?? this.buttonIconStyle,
navigationRailStyle: navigationRailStyle ?? this.navigationRailStyle,
switchStyle: switchStyle ?? this.switchStyle,
tabBarStyle: tabBarStyle ?? this.tabBarStyle,
speedDialStyle: speedDialStyle ?? this.speedDialStyle,
checkboxStyle: checkboxStyle ?? this.checkboxStyle,
radioStyle: radioStyle ?? this.radioStyle,
progressStyle: progressStyle ?? this.progressStyle,
ratingStyle: ratingStyle ?? this.ratingStyle,
sliderStyle: sliderStyle ?? this.sliderStyle,
avatarStyle: avatarStyle ?? this.avatarStyle,
buttonGroupStyle: buttonGroupStyle ?? this.buttonGroupStyle,
tooltipStyle: tooltipStyle ?? this.tooltipStyle,
skeletonStyle: skeletonStyle ?? this.skeletonStyle,
alertDialogStyle: alertDialogStyle ?? this.alertDialogStyle,
stepStyle: stepStyle ?? this.stepStyle,
stepperStyle: stepperStyle ?? this.stepperStyle,
snackBarStyle: snackBarStyle ?? this.snackBarStyle,
timePickerStyle: timePickerStyle ?? this.timePickerStyle,
datePickerStyle: datePickerStyle ?? this.datePickerStyle,
bottomSheetStyle: bottomSheetStyle ?? this.bottomSheetStyle,
);
}