copyWith method

  1. @override
DraftModeUIThemeData copyWith({
  1. ColorRole? primaryColor,
  2. ColorRole? secondaryColor,
  3. ColorRole? tertiaryColor,
  4. Color? accentColor,
  5. Color? dangerColor,
  6. Color? successColor,
  7. Color? warningColor,
  8. Color? separatorColor,
  9. double? fontSizeXLarge,
  10. double? fontSizePrimary,
  11. double? fontSizeSecondary,
  12. double? fontSizeTertiary,
  13. FontWeight? fontWeightRegular,
  14. FontWeight? fontWeightMedium,
  15. FontWeight? fontWeightSemibold,
  16. double? spacingLarge,
  17. double? spacingPrimary,
  18. double? spacingSecondary,
  19. double? spacingTertiary,
  20. double? spacingSmall,
  21. double? radiusPrimary,
  22. double? radiusSecondary,
  23. double? radiusPill,
  24. double? iconSizeLarge,
  25. double? iconSizeMedium,
  26. double? iconSizeSmall,
  27. double? navBarTopHeight,
  28. double? navBarTopIconHeight,
  29. double? navBarBottomHeight,
  30. double? navBarBottomIconHeight,
  31. ({double fontSize, FontWeight fontWeight, double height})? buttonLarge,
  32. ({double fontSize, FontWeight fontWeight, double height})? buttonMedium,
  33. ({double fontSize, FontWeight fontWeight, double height})? buttonSmall,
  34. double? rowMinHeight,
  35. double? rowPaddingHorizontal,
  36. double? labelWidth,
  37. Color? disclosureColor,
  38. double? disclosureSize,
  39. double? separatorHeight,
  40. Color? shadowColor,
  41. double? shadowBlurRadius,
  42. double? toastBottomOffset,
  43. double? toastOpacity,
  44. double? badgeMinSize,
  45. double? badgeRadius,
  46. double? badgePaddingHorizontal,
  47. double? badgePaddingVertical,
  48. double? badgeOffsetTop,
  49. double? badgeOffsetRight,
  50. double? dropDownMenuMinWidth,
  51. double? dropDownMenuMaxWidth,
  52. double? dropDownMenuGap,
  53. Duration? animationDurationFast,
  54. Duration? animationDurationDefault,
  55. Curve? animationCurve,
  56. CupertinoThemeData? cupertinoTheme,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
DraftModeUIThemeData copyWith({
  ColorRole? primaryColor,
  ColorRole? secondaryColor,
  ColorRole? tertiaryColor,
  Color? accentColor,
  Color? dangerColor,
  Color? successColor,
  Color? warningColor,
  Color? separatorColor,
  double? fontSizeXLarge,
  double? fontSizePrimary,
  double? fontSizeSecondary,
  double? fontSizeTertiary,
  FontWeight? fontWeightRegular,
  FontWeight? fontWeightMedium,
  FontWeight? fontWeightSemibold,
  double? spacingLarge,
  double? spacingPrimary,
  double? spacingSecondary,
  double? spacingTertiary,
  double? spacingSmall,
  double? radiusPrimary,
  double? radiusSecondary,
  double? radiusPill,
  double? iconSizeLarge,
  double? iconSizeMedium,
  double? iconSizeSmall,
  double? navBarTopHeight,
  double? navBarTopIconHeight,
  double? navBarBottomHeight,
  double? navBarBottomIconHeight,
  ({double height, double fontSize, FontWeight fontWeight})? buttonLarge,
  ({double height, double fontSize, FontWeight fontWeight})? buttonMedium,
  ({double height, double fontSize, FontWeight fontWeight})? buttonSmall,
  double? rowMinHeight,
  double? rowPaddingHorizontal,
  double? labelWidth,
  Color? disclosureColor,
  double? disclosureSize,
  double? separatorHeight,
  Color? shadowColor,
  double? shadowBlurRadius,
  double? toastBottomOffset,
  double? toastOpacity,
  double? badgeMinSize,
  double? badgeRadius,
  double? badgePaddingHorizontal,
  double? badgePaddingVertical,
  double? badgeOffsetTop,
  double? badgeOffsetRight,
  double? dropDownMenuMinWidth,
  double? dropDownMenuMaxWidth,
  double? dropDownMenuGap,
  Duration? animationDurationFast,
  Duration? animationDurationDefault,
  Curve? animationCurve,
  CupertinoThemeData? cupertinoTheme,
}) {
  return DraftModeUIThemeData(
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    tertiaryColor: tertiaryColor ?? this.tertiaryColor,
    accentColor: accentColor ?? this.accentColor,
    dangerColor: dangerColor ?? this.dangerColor,
    successColor: successColor ?? this.successColor,
    warningColor: warningColor ?? this.warningColor,
    separatorColor: separatorColor ?? this.separatorColor,
    fontSizeXLarge: fontSizeXLarge ?? this.fontSizeXLarge,
    fontSizePrimary: fontSizePrimary ?? this.fontSizePrimary,
    fontSizeSecondary: fontSizeSecondary ?? this.fontSizeSecondary,
    fontSizeTertiary: fontSizeTertiary ?? this.fontSizeTertiary,
    fontWeightRegular: fontWeightRegular ?? this.fontWeightRegular,
    fontWeightMedium: fontWeightMedium ?? this.fontWeightMedium,
    fontWeightSemibold: fontWeightSemibold ?? this.fontWeightSemibold,
    spacingLarge: spacingLarge ?? this.spacingLarge,
    spacingPrimary: spacingPrimary ?? this.spacingPrimary,
    spacingSecondary: spacingSecondary ?? this.spacingSecondary,
    spacingTertiary: spacingTertiary ?? this.spacingTertiary,
    spacingSmall: spacingSmall ?? this.spacingSmall,
    radiusPrimary: radiusPrimary ?? this.radiusPrimary,
    radiusSecondary: radiusSecondary ?? this.radiusSecondary,
    radiusPill: radiusPill ?? this.radiusPill,
    iconSizeLarge: iconSizeLarge ?? this.iconSizeLarge,
    iconSizeMedium: iconSizeMedium ?? this.iconSizeMedium,
    iconSizeSmall: iconSizeSmall ?? this.iconSizeSmall,
    navBarTopHeight: navBarTopHeight ?? this.navBarTopHeight,
    navBarTopIconHeight: navBarTopIconHeight ?? this.navBarTopIconHeight,
    navBarBottomHeight: navBarBottomHeight ?? this.navBarBottomHeight,
    navBarBottomIconHeight:
        navBarBottomIconHeight ?? this.navBarBottomIconHeight,
    buttonLarge: buttonLarge ?? this.buttonLarge,
    buttonMedium: buttonMedium ?? this.buttonMedium,
    buttonSmall: buttonSmall ?? this.buttonSmall,
    rowMinHeight: rowMinHeight ?? this.rowMinHeight,
    rowPaddingHorizontal: rowPaddingHorizontal ?? this.rowPaddingHorizontal,
    labelWidth: labelWidth ?? this.labelWidth,
    disclosureColor: disclosureColor ?? this.disclosureColor,
    disclosureSize: disclosureSize ?? this.disclosureSize,
    separatorHeight: separatorHeight ?? this.separatorHeight,
    shadowColor: shadowColor ?? this.shadowColor,
    shadowBlurRadius: shadowBlurRadius ?? this.shadowBlurRadius,
    toastBottomOffset: toastBottomOffset ?? this.toastBottomOffset,
    toastOpacity: toastOpacity ?? this.toastOpacity,
    badgeMinSize: badgeMinSize ?? this.badgeMinSize,
    badgeRadius: badgeRadius ?? this.badgeRadius,
    badgePaddingHorizontal:
        badgePaddingHorizontal ?? this.badgePaddingHorizontal,
    badgePaddingVertical: badgePaddingVertical ?? this.badgePaddingVertical,
    badgeOffsetTop: badgeOffsetTop ?? this.badgeOffsetTop,
    badgeOffsetRight: badgeOffsetRight ?? this.badgeOffsetRight,
    dropDownMenuMinWidth: dropDownMenuMinWidth ?? this.dropDownMenuMinWidth,
    dropDownMenuMaxWidth: dropDownMenuMaxWidth ?? this.dropDownMenuMaxWidth,
    dropDownMenuGap: dropDownMenuGap ?? this.dropDownMenuGap,
    animationDurationFast:
        animationDurationFast ?? this.animationDurationFast,
    animationDurationDefault:
        animationDurationDefault ?? this.animationDurationDefault,
    animationCurve: animationCurve ?? this.animationCurve,
    cupertinoTheme: cupertinoTheme ?? this.cupertinoTheme,
  );
}