copyWith method
VThemeConfig
copyWith({
- Color? inputCursorColor,
- TextStyle? hintStyle,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- TextStyle? requiredStarStyle,
- IconThemeData? iconTheme,
- IconThemeData? arrowIconTheme,
- IconThemeData? clearIconTheme,
- IconThemeData? pwdEyeIconTheme,
- double? buttonHeight,
- double? buttonFontSize,
- double? buttonRadius,
- double? buttonPaddingH,
- double? cellHeight,
- double? cellTitleWidth,
- VTabBarStyle? tabBarStyle,
- double? smallRadius,
- double? mediumRadius,
- double? largeRadius,
- double? circularRadius,
- double? cardRadius,
- double? dialogRadius,
- double? spacingXS,
- double? spacingSM,
- double? spacingMD,
- double? spacingLG,
- double? spacingXL,
- Color? successColor,
- Color? errorColor,
- Color? warningColor,
- Color? infoColor,
- Color? linkColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VThemeConfig copyWith({
Color? inputCursorColor,
TextStyle? hintStyle,
TextStyle? labelStyle,
TextStyle? valueStyle,
TextStyle? requiredStarStyle,
IconThemeData? iconTheme,
IconThemeData? arrowIconTheme,
IconThemeData? clearIconTheme,
IconThemeData? pwdEyeIconTheme,
double? buttonHeight,
double? buttonFontSize,
double? buttonRadius,
double? buttonPaddingH,
double? cellHeight,
double? cellTitleWidth,
VTabBarStyle? tabBarStyle,
double? smallRadius,
double? mediumRadius,
double? largeRadius,
double? circularRadius,
double? cardRadius,
double? dialogRadius,
double? spacingXS,
double? spacingSM,
double? spacingMD,
double? spacingLG,
double? spacingXL,
Color? successColor,
Color? errorColor,
Color? warningColor,
Color? infoColor,
Color? linkColor,
}) {
return VThemeConfig(
// inputCursorColor: inputCursorColor ?? this.inputCursorColor,
// hintStyle: hintStyle ?? this.hintStyle,
labelStyle: labelStyle ?? this.labelStyle,
valueStyle: valueStyle ?? this.valueStyle,
requiredStarStyle: requiredStarStyle ?? this.requiredStarStyle,
iconTheme: iconTheme ?? this.iconTheme,
arrowIconTheme: arrowIconTheme ?? this.arrowIconTheme,
clearIconTheme: clearIconTheme ?? this.clearIconTheme,
pwdEyeIconTheme: pwdEyeIconTheme ?? this.pwdEyeIconTheme,
buttonHeight: buttonHeight ?? this.buttonHeight,
buttonFontSize: buttonFontSize ?? this.buttonFontSize,
buttonRadius: buttonRadius ?? this.buttonRadius,
buttonPaddingH: buttonPaddingH ?? this.buttonPaddingH,
cellHeight: cellHeight ?? this.cellHeight,
cellTitleWidth: cellTitleWidth ?? this.cellTitleWidth,
tabBarStyle: tabBarStyle ?? this.tabBarStyle,
smallRadius: smallRadius ?? this.smallRadius,
mediumRadius: mediumRadius ?? this.mediumRadius,
largeRadius: largeRadius ?? this.largeRadius,
circularRadius: circularRadius ?? this.circularRadius,
cardRadius: cardRadius ?? this.cardRadius,
dialogRadius: dialogRadius ?? this.dialogRadius,
spacingXS: spacingXS ?? this.spacingXS,
spacingSM: spacingSM ?? this.spacingSM,
spacingMD: spacingMD ?? this.spacingMD,
spacingLG: spacingLG ?? this.spacingLG,
spacingXL: spacingXL ?? this.spacingXL,
successColor: successColor ?? this.successColor,
errorColor: errorColor ?? this.errorColor,
warningColor: warningColor ?? this.warningColor,
infoColor: infoColor ?? this.infoColor,
linkColor: linkColor ?? this.linkColor,
);
}