copyWith method

DropdownPlusTheme copyWith({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. Color? activeBorderColor,
  4. double? borderWidth,
  5. double? activeBorderWidth,
  6. double? borderRadius,
  7. EdgeInsets? contentPadding,
  8. TextStyle? hintStyle,
  9. TextStyle? triggerTextStyle,
  10. Color? menuBackgroundColor,
  11. double? menuBorderRadius,
  12. double? menuElevation,
  13. double? menuMaxHeight,
  14. Color? menuBorderColor,
  15. Color? searchBarBackgroundColor,
  16. double? searchBarBorderRadius,
  17. TextStyle? searchHintStyle,
  18. TextStyle? searchTextStyle,
  19. Color? searchIconColor,
  20. TextStyle? itemTextStyle,
  21. TextStyle? selectedItemTextStyle,
  22. Color? selectedItemBackgroundColor,
  23. EdgeInsets? itemPadding,
  24. Color? dividerColor,
  25. Color? checkboxBorderColor,
  26. Color? checkboxActiveColor,
  27. double? checkboxSize,
  28. Color? chipBackgroundColor,
  29. TextStyle? chipTextStyle,
  30. Color? chipBorderColor,
  31. double? chipBorderRadius,
  32. Color? chipDeleteIconColor,
  33. double? chipDeleteIconSize,
  34. Color? countChipBackgroundColor,
  35. TextStyle? countChipTextStyle,
  36. Color? loadingIndicatorColor,
  37. TextStyle? loadingTextStyle,
  38. TextStyle? noResultsTextStyle,
  39. Color? noResultsIconColor,
  40. Color? arrowIconColor,
  41. double? arrowIconSize,
  42. Color? headerBackgroundColor,
  43. TextStyle? selectAllTextStyle,
  44. TextStyle? selectedCountTextStyle,
  45. Color? selectedCountBackgroundColor,
})

Returns a copy of this theme with the given fields replaced.

Implementation

DropdownPlusTheme copyWith({
  Color? backgroundColor,
  Color? borderColor,
  Color? activeBorderColor,
  double? borderWidth,
  double? activeBorderWidth,
  double? borderRadius,
  EdgeInsets? contentPadding,
  TextStyle? hintStyle,
  TextStyle? triggerTextStyle,
  Color? menuBackgroundColor,
  double? menuBorderRadius,
  double? menuElevation,
  double? menuMaxHeight,
  Color? menuBorderColor,
  Color? searchBarBackgroundColor,
  double? searchBarBorderRadius,
  TextStyle? searchHintStyle,
  TextStyle? searchTextStyle,
  Color? searchIconColor,
  TextStyle? itemTextStyle,
  TextStyle? selectedItemTextStyle,
  Color? selectedItemBackgroundColor,
  EdgeInsets? itemPadding,
  Color? dividerColor,
  Color? checkboxBorderColor,
  Color? checkboxActiveColor,
  double? checkboxSize,
  Color? chipBackgroundColor,
  TextStyle? chipTextStyle,
  Color? chipBorderColor,
  double? chipBorderRadius,
  Color? chipDeleteIconColor,
  double? chipDeleteIconSize,
  Color? countChipBackgroundColor,
  TextStyle? countChipTextStyle,
  Color? loadingIndicatorColor,
  TextStyle? loadingTextStyle,
  TextStyle? noResultsTextStyle,
  Color? noResultsIconColor,
  Color? arrowIconColor,
  double? arrowIconSize,
  Color? headerBackgroundColor,
  TextStyle? selectAllTextStyle,
  TextStyle? selectedCountTextStyle,
  Color? selectedCountBackgroundColor,
}) {
  return DropdownPlusTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    activeBorderColor: activeBorderColor ?? this.activeBorderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    activeBorderWidth: activeBorderWidth ?? this.activeBorderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    contentPadding: contentPadding ?? this.contentPadding,
    hintStyle: hintStyle ?? this.hintStyle,
    triggerTextStyle: triggerTextStyle ?? this.triggerTextStyle,
    menuBackgroundColor: menuBackgroundColor ?? this.menuBackgroundColor,
    menuBorderRadius: menuBorderRadius ?? this.menuBorderRadius,
    menuElevation: menuElevation ?? this.menuElevation,
    menuMaxHeight: menuMaxHeight ?? this.menuMaxHeight,
    menuBorderColor: menuBorderColor ?? this.menuBorderColor,
    searchBarBackgroundColor:
        searchBarBackgroundColor ?? this.searchBarBackgroundColor,
    searchBarBorderRadius:
        searchBarBorderRadius ?? this.searchBarBorderRadius,
    searchHintStyle: searchHintStyle ?? this.searchHintStyle,
    searchTextStyle: searchTextStyle ?? this.searchTextStyle,
    searchIconColor: searchIconColor ?? this.searchIconColor,
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
    selectedItemTextStyle:
        selectedItemTextStyle ?? this.selectedItemTextStyle,
    selectedItemBackgroundColor:
        selectedItemBackgroundColor ?? this.selectedItemBackgroundColor,
    itemPadding: itemPadding ?? this.itemPadding,
    dividerColor: dividerColor ?? this.dividerColor,
    checkboxBorderColor: checkboxBorderColor ?? this.checkboxBorderColor,
    checkboxActiveColor: checkboxActiveColor ?? this.checkboxActiveColor,
    checkboxSize: checkboxSize ?? this.checkboxSize,
    chipBackgroundColor: chipBackgroundColor ?? this.chipBackgroundColor,
    chipTextStyle: chipTextStyle ?? this.chipTextStyle,
    chipBorderColor: chipBorderColor ?? this.chipBorderColor,
    chipBorderRadius: chipBorderRadius ?? this.chipBorderRadius,
    chipDeleteIconColor: chipDeleteIconColor ?? this.chipDeleteIconColor,
    chipDeleteIconSize: chipDeleteIconSize ?? this.chipDeleteIconSize,
    countChipBackgroundColor:
        countChipBackgroundColor ?? this.countChipBackgroundColor,
    countChipTextStyle: countChipTextStyle ?? this.countChipTextStyle,
    loadingIndicatorColor:
        loadingIndicatorColor ?? this.loadingIndicatorColor,
    loadingTextStyle: loadingTextStyle ?? this.loadingTextStyle,
    noResultsTextStyle: noResultsTextStyle ?? this.noResultsTextStyle,
    noResultsIconColor: noResultsIconColor ?? this.noResultsIconColor,
    arrowIconColor: arrowIconColor ?? this.arrowIconColor,
    arrowIconSize: arrowIconSize ?? this.arrowIconSize,
    headerBackgroundColor:
        headerBackgroundColor ?? this.headerBackgroundColor,
    selectAllTextStyle: selectAllTextStyle ?? this.selectAllTextStyle,
    selectedCountTextStyle:
        selectedCountTextStyle ?? this.selectedCountTextStyle,
    selectedCountBackgroundColor:
        selectedCountBackgroundColor ?? this.selectedCountBackgroundColor,
  );
}