copyWith method

FdcEditorComboPopupStyle copyWith({
  1. Color? backgroundColor,
  2. Color? surfaceTintColor,
  3. Color? shadowColor,
  4. Color? borderColor,
  5. double? elevation,
  6. BorderRadiusGeometry? borderRadius,
  7. TextStyle? itemTextStyle,
  8. Color? highlightedItemColor,
  9. Color? selectedIconColor,
  10. TextStyle? emptyTextStyle,
  11. Color? searchFillColor,
  12. TextStyle? searchTextStyle,
  13. TextStyle? searchHintStyle,
  14. Color? searchIconColor,
  15. Color? searchClearIconColor,
  16. Color? searchBorderColor,
  17. Color? searchFocusedBorderColor,
  18. double? searchBorderWidth,
  19. double? searchFocusedBorderWidth,
  20. BorderRadiusGeometry? searchBorderRadius,
})

Creates a copy with selected values replaced.

Implementation

FdcEditorComboPopupStyle copyWith({
  Color? backgroundColor,
  Color? surfaceTintColor,
  Color? shadowColor,
  Color? borderColor,
  double? elevation,
  BorderRadiusGeometry? borderRadius,
  TextStyle? itemTextStyle,
  Color? highlightedItemColor,
  Color? selectedIconColor,
  TextStyle? emptyTextStyle,
  Color? searchFillColor,
  TextStyle? searchTextStyle,
  TextStyle? searchHintStyle,
  Color? searchIconColor,
  Color? searchClearIconColor,
  Color? searchBorderColor,
  Color? searchFocusedBorderColor,
  double? searchBorderWidth,
  double? searchFocusedBorderWidth,
  BorderRadiusGeometry? searchBorderRadius,
}) {
  return FdcEditorComboPopupStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
    shadowColor: shadowColor ?? this.shadowColor,
    borderColor: borderColor ?? this.borderColor,
    elevation: elevation ?? this.elevation,
    borderRadius: borderRadius ?? this.borderRadius,
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
    highlightedItemColor: highlightedItemColor ?? this.highlightedItemColor,
    selectedIconColor: selectedIconColor ?? this.selectedIconColor,
    emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
    searchFillColor: searchFillColor ?? this.searchFillColor,
    searchTextStyle: searchTextStyle ?? this.searchTextStyle,
    searchHintStyle: searchHintStyle ?? this.searchHintStyle,
    searchIconColor: searchIconColor ?? this.searchIconColor,
    searchClearIconColor: searchClearIconColor ?? this.searchClearIconColor,
    searchBorderColor: searchBorderColor ?? this.searchBorderColor,
    searchFocusedBorderColor:
        searchFocusedBorderColor ?? this.searchFocusedBorderColor,
    searchBorderWidth: searchBorderWidth ?? this.searchBorderWidth,
    searchFocusedBorderWidth:
        searchFocusedBorderWidth ?? this.searchFocusedBorderWidth,
    searchBorderRadius: searchBorderRadius ?? this.searchBorderRadius,
  );
}