copyWith method
DropdownPlusTheme
copyWith({
- Color? backgroundColor,
- Color? borderColor,
- Color? activeBorderColor,
- double? borderWidth,
- double? activeBorderWidth,
- double? borderRadius,
- EdgeInsets? contentPadding,
- TextStyle? hintStyle,
- TextStyle? triggerTextStyle,
- 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,
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,
);
}