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