CommandProps constructor

const CommandProps({
  1. required bool isOpen,
  2. required List<CommandGroupProps> groups,
  3. String? id,
  4. void onClose()?,
  5. String placeholder = 'Type a command or search...',
  6. String emptyMessage = 'No results found.',
  7. String searchQuery = '',
  8. List<CommandItemProps> filteredItems = const [],
  9. void onSearch(
    1. String
    )?,
  10. void onSelectItem(
    1. CommandItemProps
    )?,
  11. bool escapeCloses = true,
  12. bool scrimCloses = true,
  13. bool focusTrap = true,
  14. bool restoreFocus = true,
})

Implementation

const CommandProps({
  required this.isOpen,
  required this.groups,
  this.id,
  this.onClose,
  this.placeholder = 'Type a command or search...',
  this.emptyMessage = 'No results found.',
  this.searchQuery = '',
  this.filteredItems = const [],
  this.onSearch,
  this.onSelectItem,
  this.escapeCloses = true,
  this.scrimCloses = true,
  this.focusTrap = true,
  this.restoreFocus = true,
});