copyWith method
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 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,
- 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,
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,
);
}