CommandProps class

Command palette component properties.

Constructors

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(String)?, void onSelectItem(CommandItemProps)?, bool escapeCloses = true, bool scrimCloses = true, bool focusTrap = true, bool restoreFocus = true, ArcaneStyleData? styles, ArcaneDecoration? decoration})
const

Properties

decoration → ArcaneDecoration?
Semantic, theme-interpreted decoration (elevation intent + theme-specific fields honored-or-ignored per theme).
final
emptyMessage → String
final
escapeCloses → bool
final
filteredItems → List<CommandItemProps>
final
focusTrap → bool
final
groups → List<CommandGroupProps>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
isOpen → bool
final
onClose → void Function()?
final
onSearch → void Function(String)?
final
onSelectItem → void Function(CommandItemProps)?
final
placeholder → String
final
restoreFocus → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrimCloses → bool
final
searchQuery → String
final
styles → ArcaneStyleData?
Literal, theme-permeable style override (always applied, wins over theme).
final

Methods

copyWith({String? id, bool? isOpen, void onClose()?, List<CommandGroupProps>? groups, String? placeholder, String? emptyMessage, String? searchQuery, List<CommandItemProps>? filteredItems, void onSearch(String)?, void onSelectItem(CommandItemProps)?, bool? escapeCloses, bool? scrimCloses, bool? focusTrap, bool? restoreFocus, ArcaneStyleData? styles, ArcaneDecoration? decoration}) → CommandProps
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