CommandProps constructor

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

Implementation

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