CommandPalette constructor

CommandPalette({
  1. required Widget child,
  2. required List<CommandPaletteItem> items,
  3. bool open = false,
  4. String? title,
  5. String? hint,
  6. CmdCallback? onDismiss,
  7. ValueCmdCallback<CommandPaletteItem>? onSelect,
  8. Color? background,
  9. Color? selectedBackground,
  10. Color? selectedForeground,
  11. Border? border,
  12. Color? borderColor,
  13. int? width,
  14. int? maxHeight,
  15. double backdropOpacity = 0.6,
  16. Key? key,
})

Implementation

CommandPalette({
  required this.child,
  required this.items,
  this.open = false,
  this.title,
  this.hint,
  this.onDismiss,
  this.onSelect,
  this.background,
  this.selectedBackground,
  this.selectedForeground,
  this.border,
  this.borderColor,
  this.width,
  this.maxHeight,
  this.backdropOpacity = 0.6,
  super.key,
});