ArcaneCommand constructor

const ArcaneCommand({
  1. required List<CommandGroup> groups,
  2. String? id,
  3. bool isOpen = false,
  4. void onClose()?,
  5. String placeholder = 'Type a command or search...',
  6. String emptyMessage = 'No results found.',
  7. void onSearch(
    1. String
    )?,
  8. bool filterFn(
    1. CommandItem,
    2. String
    )?,
  9. bool escapeCloses = true,
  10. bool scrimCloses = true,
  11. bool focusTrap = true,
  12. bool restoreFocus = true,
  13. ArcaneStyleData? styles,
  14. ArcaneDecoration? decoration,
  15. 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,
});