CommandProps constructor
const
CommandProps({
- required bool isOpen,
- required List<
CommandGroupProps> groups, - void onClose()?,
- String placeholder = 'Type a command or search...',
- String emptyMessage = 'No results found.',
- String searchQuery = '',
- List<
CommandItemProps> filteredItems = const [], - void onSearch()?,
- void onSelectItem()?,
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,
});