ArcaneCommand constructor
const
ArcaneCommand({
- required List<
CommandGroup> groups, - String? id,
- bool isOpen = false,
- void onClose()?,
- String placeholder = 'Type a command or search...',
- String emptyMessage = 'No results found.',
- void onSearch()?,
- bool filterFn()?,
- bool escapeCloses = true,
- bool scrimCloses = true,
- bool focusTrap = true,
- bool restoreFocus = true,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
- Key? key,
Implementation
const ArcaneCommand({
required this.groups,
this.id,
this.isOpen = false,
this.onClose,
this.placeholder = 'Type a command or search...',
this.emptyMessage = 'No results found.',
this.onSearch,
this.filterFn,
this.escapeCloses = true,
this.scrimCloses = true,
this.focusTrap = true,
this.restoreFocus = true,
this.styles,
this.decoration,
super.key,
});