copyWith method

CommandPaletteThemeData copyWith({
  1. Color? background,
  2. Color? foreground,
  3. Color? selectedBackground,
  4. Color? selectedForeground,
  5. Color? headerForeground,
  6. Color? searchBackground,
  7. Color? searchForeground,
  8. Color? shortcutForeground,
  9. Border? border,
  10. Color? borderColor,
  11. int? width,
  12. int? maxHeight,
})

Copy with selective overrides.

Implementation

CommandPaletteThemeData copyWith({
  Color? background,
  Color? foreground,
  Color? selectedBackground,
  Color? selectedForeground,
  Color? headerForeground,
  Color? searchBackground,
  Color? searchForeground,
  Color? shortcutForeground,
  Border? border,
  Color? borderColor,
  int? width,
  int? maxHeight,
}) {
  return CommandPaletteThemeData(
    background: background ?? this.background,
    foreground: foreground ?? this.foreground,
    selectedBackground: selectedBackground ?? this.selectedBackground,
    selectedForeground: selectedForeground ?? this.selectedForeground,
    headerForeground: headerForeground ?? this.headerForeground,
    searchBackground: searchBackground ?? this.searchBackground,
    searchForeground: searchForeground ?? this.searchForeground,
    shortcutForeground: shortcutForeground ?? this.shortcutForeground,
    border: border ?? this.border,
    borderColor: borderColor ?? this.borderColor,
    width: width ?? this.width,
    maxHeight: maxHeight ?? this.maxHeight,
  );
}