copyWith method
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 fontSize, FontWeight fontWeight, double height})? buttonLarge,
- ({double fontSize, FontWeight fontWeight, double height})? buttonMedium,
- ({double fontSize, FontWeight fontWeight, double height})? 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,
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,
);
}