copyWith method

  1. @override
VSelectStyle copyWith({
  1. Color? backgroundColor,
  2. dynamic splashColor,
  3. dynamic iconColor,
  4. dynamic dropDownBorderColor,
  5. dynamic bottomBarColor,
  6. dynamic borderColor,
  7. dynamic labelTextColor,
  8. dynamic buttonTextColor,
  9. dynamic validateTextColor,
  10. dynamic errorIconColor,
  11. dynamic dropdownColor,
  12. dynamic borderErrorColor,
  13. TextStyle? headerTitleTextStyle,
  14. dynamic labelTextStyle,
  15. dynamic validateTextStyle,
  16. double? borderRadius,
  17. dynamic dropDownElevation,
  18. dynamic dropDownBorderRadius,
  19. dynamic buttonHeight,
  20. dynamic buttonWidth,
  21. dynamic dropdownWidth,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VSelectStyle copyWith({
  Color? backgroundColor,
  splashColor,
  iconColor,
  dropDownBorderColor,
  bottomBarColor,
  borderColor,
  labelTextColor,
  buttonTextColor,
  validateTextColor,
  errorIconColor,
  dropdownColor,
  borderErrorColor,
  TextStyle? headerTitleTextStyle,
  labelTextStyle,
  validateTextStyle,
  double? borderRadius,
  dropDownElevation,
  dropDownBorderRadius,
  buttonHeight,
  buttonWidth,
  dropdownWidth,
}) =>
    VSelectStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      splashColor: splashColor ?? this.splashColor,
      iconColor: iconColor ?? this.iconColor,
      dropDownBorderColor: dropDownBorderColor ?? this.dropDownBorderColor,
      bottomBarColor: bottomBarColor ?? this.bottomBarColor,
      borderColor: borderColor ?? this.borderColor,
      labelTextColor: labelTextColor ?? this.labelTextColor,
      buttonTextColor: buttonTextColor ?? this.buttonTextColor,
      validateTextColor: validateTextColor ?? this.validateTextColor,
      errorIconColor: errorIconColor ?? this.errorIconColor,
      dropdownColor: dropdownColor ?? this.dropdownColor,
      borderErrorColor: borderErrorColor ?? this.borderErrorColor,
      borderRadius: borderRadius ?? this.borderRadius,
      dropDownElevation: dropDownElevation ?? this.dropDownElevation,
      dropDownBorderRadius: dropDownBorderRadius ?? this.dropDownBorderRadius,
      buttonHeight: buttonHeight ?? this.buttonHeight,
      buttonWidth: buttonWidth ?? this.buttonWidth,
      dropdownWidth: dropdownWidth ?? this.dropdownWidth,
      headerTitleTextStyle: headerTitleTextStyle ?? this.headerTitleTextStyle,
    );