copyWith method

ZeroThemeData copyWith({
  1. Brightness? brightness,
  2. ZeroTypography? typography,
  3. bool? useMaterial3,
  4. String? fontFamily,
  5. AccentColor? primaryColor,
  6. Color? inactiveBackgroundColor,
  7. Color? disabledColor,
  8. Color? scaffoldBackgroundColor,
  9. Color? uncheckedColor,
  10. Color? checkedColor,
  11. Color? cardColor,
  12. Color? disabledBackgroundColor,
  13. Color? successColor,
  14. Color? infoColor,
  15. Color? warningColor,
  16. Color? errorColor,
  17. Color? dividerColor,
  18. Color? solidTextColor,
  19. Color? regularTextColor,
  20. ColorScheme? colorScheme,
  21. IconThemeData? iconTheme,
  22. DialogTheme? dialogTheme,
  23. ButtonThemeData? buttonTheme,
  24. InputDecorationTheme? inputDecorationTheme,
  25. ZeroListTileStyle? listTileStyle,
  26. ZeroButtonStyle? primaryButtonStyle,
  27. ZeroButtonStyle? secondaryButtonStyle,
  28. ZeroButtonStyle? textButtonStyle,
  29. ZeroDividerStyle? dividerStyle,
  30. ZeroChipFilledStyle? chipFilledStyle,
  31. ZeroChipOutlinedStyle? chipOutlinedStyle,
  32. ZeroNavigationBarStyle? navigationBarStyle,
  33. ZeroTextfieldStyleSet? textfieldStyleSet,
  34. ZeroNavigationDrawerStyle? navigationDrawerStyle,
  35. ZeroAppBarStyle? appBarStyle,
  36. ZeroCardStyle? cardStyle,
  37. ZeroButtonIconStyleSet? buttonIconStyle,
  38. ZeroNavigationRailStyle? navigationRailStyle,
  39. ZeroSwitchStyleSet? switchStyle,
  40. ZeroTabBarStyle? tabBarStyle,
  41. ZeroSpeedDialStyle? speedDialStyle,
  42. ZeroCheckboxStyle? checkboxStyle,
  43. ZeroRadioStyle? radioStyle,
  44. ZeroProgressStyle? progressStyle,
  45. ZeroRatingStyle? ratingStyle,
  46. ZeroSliderStyle? sliderStyle,
  47. ZeroAvatarStyle? avatarStyle,
  48. ZeroButtonGroupStyleSet? buttonGroupStyle,
  49. ZeroMenuStyle? menuStyle,
  50. ZeroTooltipStyle? tooltipStyle,
  51. ZeroSkeletonStyleSet? skeletonStyle,
  52. ZeroAlertDialogStyle? alertDialogStyle,
  53. ZeroStepStyle? stepStyle,
  54. ZeroStepperStyle? stepperStyle,
  55. ZeroSnackbarStyleSet? snackBarStyle,
  56. ZeroTimePickerStyle? timePickerStyle,
  57. ZeroDatePickerStyle? datePickerStyle,
  58. 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,
  );
}