ArcaneCommand class

Command palette for quick actions and navigation.

Inheritance

Constructors

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(String)?, bool filterFn(CommandItem, String)?, bool escapeCloses = true, bool scrimCloses = true, bool focusTrap = true, bool restoreFocus = true, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
const

Properties

decoration → ArcaneDecoration?
Semantic, theme-interpreted decoration (elevation + theme-specific fields).
final
emptyMessage → String
final
escapeCloses → bool
final
filterFn → bool Function(CommandItem, String)?
final
focusTrap → bool
final
groups → List<CommandGroup>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
isOpen → bool
final
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
onClose → void Function()?
final
onSearch → void Function(String)?
final
placeholder → String
final
restoreFocus → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrimCloses → bool
final
styles → ArcaneStyleData?
Literal, theme-permeable style override (always applied, wins over theme).
final

Methods

createElement() → Element
Creates a StatefulElement to manage this component's location in the tree.
inherited
createState() → State<ArcaneCommand>
Creates the mutable state for this component at a given location in the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited