copyWith method

  1. @override
VThemeConfig copyWith({
  1. Color? inputCursorColor,
  2. TextStyle? hintStyle,
  3. TextStyle? labelStyle,
  4. TextStyle? valueStyle,
  5. TextStyle? requiredStarStyle,
  6. IconThemeData? iconTheme,
  7. IconThemeData? arrowIconTheme,
  8. IconThemeData? clearIconTheme,
  9. IconThemeData? pwdEyeIconTheme,
  10. double? buttonHeight,
  11. double? buttonFontSize,
  12. double? buttonRadius,
  13. double? buttonPaddingH,
  14. double? cellHeight,
  15. double? cellTitleWidth,
  16. VTabBarStyle? tabBarStyle,
  17. double? smallRadius,
  18. double? mediumRadius,
  19. double? largeRadius,
  20. double? circularRadius,
  21. double? cardRadius,
  22. double? dialogRadius,
  23. double? spacingXS,
  24. double? spacingSM,
  25. double? spacingMD,
  26. double? spacingLG,
  27. double? spacingXL,
  28. Color? successColor,
  29. Color? errorColor,
  30. Color? warningColor,
  31. Color? infoColor,
  32. 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,
  );
}