copyWith method

  1. @override
DraftModeUIThemeData copyWith({
  1. DraftModePlatformStyle? platformStyle,
  2. Brightness? brightness,
  3. ColorRole? primaryColor,
  4. ColorRole? secondaryColor,
  5. ColorRole? tertiaryColor,
  6. Color? accentColor,
  7. Color? dangerColor,
  8. Color? successColor,
  9. Color? warningColor,
  10. ColorRole? buttonGrayColor,
  11. Color? separatorColor,
  12. Color? switchAndroidActiveTrackColor,
  13. Color? switchAndroidActiveThumbColor,
  14. Color? switchAndroidInactiveTrackColor,
  15. Color? switchAndroidInactiveThumbColor,
  16. Color? switchAndroidTrackOutlineColor,
  17. double? fontSizeXLarge,
  18. double? fontSizePrimary,
  19. double? fontSizeSecondary,
  20. double? fontSizeTertiary,
  21. FontWeight? fontWeightRegular,
  22. FontWeight? fontWeightMedium,
  23. FontWeight? fontWeightSemibold,
  24. double? sectionHeaderFontSize,
  25. FontWeight? sectionHeaderFontWeight,
  26. double? sectionHeaderLetterSpacing,
  27. double? spacingXs,
  28. double? spacingSm,
  29. double? spacingMd,
  30. double? spacingLg,
  31. double? spacingXl,
  32. double? radiusPrimary,
  33. double? radiusSecondary,
  34. double? radiusPill,
  35. double? iconSizeLarge,
  36. double? iconSizeMedium,
  37. double? iconSizeSmall,
  38. double? navBarTopHeight,
  39. double? navBarTopIconHeight,
  40. double? navBarBottomHeight,
  41. double? navBarBottomIconHeight,
  42. ({double fontSize, FontWeight fontWeight, double height})? buttonLarge,
  43. ({double fontSize, FontWeight fontWeight, double height})? buttonMedium,
  44. ({double fontSize, FontWeight fontWeight, double height})? buttonSmall,
  45. double? rowMinHeight,
  46. double? rowPaddingHorizontal,
  47. double? labelWidth,
  48. double? rowLabelFontSize,
  49. FontWeight? rowLabelFontWeight,
  50. double? rowTextFontSize,
  51. FontWeight? rowTextFontWeight,
  52. Color? disclosureColor,
  53. double? disclosureSize,
  54. double? separatorHeight,
  55. Color? shadowColor,
  56. double? shadowBlurRadius,
  57. double? toastBottomOffset,
  58. double? toastOpacity,
  59. double? toastMaxWidth,
  60. double? toastHorizontalInset,
  61. double? toastRadius,
  62. double? toastMinHeight,
  63. double? toastPaddingHorizontal,
  64. double? toastPaddingVertical,
  65. Color? toastShadowColor,
  66. double? toastShadowBlurRadius,
  67. double? badgeMinSize,
  68. double? badgeRadius,
  69. double? badgePaddingHorizontal,
  70. double? badgePaddingVertical,
  71. double? badgeOffsetTop,
  72. double? badgeOffsetRight,
  73. double? spinnerAndroidStrokeWidth,
  74. double? dropDownMenuMinWidth,
  75. double? dropDownMenuMaxWidth,
  76. double? dropDownMenuGap,
  77. Duration? animationDurationFast,
  78. Duration? animationDurationDefault,
  79. Curve? animationCurve,
  80. @Deprecated('Use brightness instead. This parameter remains only for source ' 'compatibility with older code.') 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({
  DraftModePlatformStyle? platformStyle,
  Brightness? brightness,
  ColorRole? primaryColor,
  ColorRole? secondaryColor,
  ColorRole? tertiaryColor,
  Color? accentColor,
  Color? dangerColor,
  Color? successColor,
  Color? warningColor,
  ColorRole? buttonGrayColor,
  Color? separatorColor,
  Color? switchAndroidActiveTrackColor,
  Color? switchAndroidActiveThumbColor,
  Color? switchAndroidInactiveTrackColor,
  Color? switchAndroidInactiveThumbColor,
  Color? switchAndroidTrackOutlineColor,
  double? fontSizeXLarge,
  double? fontSizePrimary,
  double? fontSizeSecondary,
  double? fontSizeTertiary,
  FontWeight? fontWeightRegular,
  FontWeight? fontWeightMedium,
  FontWeight? fontWeightSemibold,
  double? sectionHeaderFontSize,
  FontWeight? sectionHeaderFontWeight,
  double? sectionHeaderLetterSpacing,
  double? spacingXs,
  double? spacingSm,
  double? spacingMd,
  double? spacingLg,
  double? spacingXl,
  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,
  double? rowLabelFontSize,
  FontWeight? rowLabelFontWeight,
  double? rowTextFontSize,
  FontWeight? rowTextFontWeight,
  Color? disclosureColor,
  double? disclosureSize,
  double? separatorHeight,
  Color? shadowColor,
  double? shadowBlurRadius,
  double? toastBottomOffset,
  double? toastOpacity,
  double? toastMaxWidth,
  double? toastHorizontalInset,
  double? toastRadius,
  double? toastMinHeight,
  double? toastPaddingHorizontal,
  double? toastPaddingVertical,
  Color? toastShadowColor,
  double? toastShadowBlurRadius,
  double? badgeMinSize,
  double? badgeRadius,
  double? badgePaddingHorizontal,
  double? badgePaddingVertical,
  double? badgeOffsetTop,
  double? badgeOffsetRight,
  double? spinnerAndroidStrokeWidth,
  double? dropDownMenuMinWidth,
  double? dropDownMenuMaxWidth,
  double? dropDownMenuGap,
  Duration? animationDurationFast,
  Duration? animationDurationDefault,
  Curve? animationCurve,
  @Deprecated(
    'Use brightness instead. This parameter remains only for source '
    'compatibility with older code.',
  )
  CupertinoThemeData? cupertinoTheme,
}) {
  return DraftModeUIThemeData(
    platformStyle: platformStyle ?? this.platformStyle,
    brightness: cupertinoTheme?.brightness ?? brightness ?? this.brightness,
    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,
    buttonGrayColor: buttonGrayColor ?? this.buttonGrayColor,
    separatorColor: separatorColor ?? this.separatorColor,
    switchAndroidActiveTrackColor:
        switchAndroidActiveTrackColor ?? this.switchAndroidActiveTrackColor,
    switchAndroidActiveThumbColor:
        switchAndroidActiveThumbColor ?? this.switchAndroidActiveThumbColor,
    switchAndroidInactiveTrackColor: switchAndroidInactiveTrackColor ??
        this.switchAndroidInactiveTrackColor,
    switchAndroidInactiveThumbColor: switchAndroidInactiveThumbColor ??
        this.switchAndroidInactiveThumbColor,
    switchAndroidTrackOutlineColor:
        switchAndroidTrackOutlineColor ?? this.switchAndroidTrackOutlineColor,
    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,
    sectionHeaderFontSize:
        sectionHeaderFontSize ?? this.sectionHeaderFontSize,
    sectionHeaderFontWeight:
        sectionHeaderFontWeight ?? this.sectionHeaderFontWeight,
    sectionHeaderLetterSpacing:
        sectionHeaderLetterSpacing ?? this.sectionHeaderLetterSpacing,
    spacingXs: spacingXs ?? this.spacingXs,
    spacingSm: spacingSm ?? this.spacingSm,
    spacingMd: spacingMd ?? this.spacingMd,
    spacingLg: spacingLg ?? this.spacingLg,
    spacingXl: spacingXl ?? this.spacingXl,
    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,
    rowLabelFontSize: rowLabelFontSize ?? this.rowLabelFontSize,
    rowLabelFontWeight: rowLabelFontWeight ?? this.rowLabelFontWeight,
    rowTextFontSize: rowTextFontSize ?? this.rowTextFontSize,
    rowTextFontWeight: rowTextFontWeight ?? this.rowTextFontWeight,
    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,
    toastMaxWidth: toastMaxWidth ?? this.toastMaxWidth,
    toastHorizontalInset: toastHorizontalInset ?? this.toastHorizontalInset,
    toastRadius: toastRadius ?? this.toastRadius,
    toastMinHeight: toastMinHeight ?? this.toastMinHeight,
    toastPaddingHorizontal:
        toastPaddingHorizontal ?? this.toastPaddingHorizontal,
    toastPaddingVertical: toastPaddingVertical ?? this.toastPaddingVertical,
    toastShadowColor: toastShadowColor ?? this.toastShadowColor,
    toastShadowBlurRadius:
        toastShadowBlurRadius ?? this.toastShadowBlurRadius,
    badgeMinSize: badgeMinSize ?? this.badgeMinSize,
    badgeRadius: badgeRadius ?? this.badgeRadius,
    badgePaddingHorizontal:
        badgePaddingHorizontal ?? this.badgePaddingHorizontal,
    badgePaddingVertical: badgePaddingVertical ?? this.badgePaddingVertical,
    badgeOffsetTop: badgeOffsetTop ?? this.badgeOffsetTop,
    badgeOffsetRight: badgeOffsetRight ?? this.badgeOffsetRight,
    spinnerAndroidStrokeWidth:
        spinnerAndroidStrokeWidth ?? this.spinnerAndroidStrokeWidth,
    dropDownMenuMinWidth: dropDownMenuMinWidth ?? this.dropDownMenuMinWidth,
    dropDownMenuMaxWidth: dropDownMenuMaxWidth ?? this.dropDownMenuMaxWidth,
    dropDownMenuGap: dropDownMenuGap ?? this.dropDownMenuGap,
    animationDurationFast:
        animationDurationFast ?? this.animationDurationFast,
    animationDurationDefault:
        animationDurationDefault ?? this.animationDurationDefault,
    animationCurve: animationCurve ?? this.animationCurve,
  );
}