copyWith method
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,
);
}