CommandRenderBase class abstract

Shared structural base for themed command-palette renderers.

Every theme's command palette shares the same overlay/dialog scaffold, the surface attribute wiring, the search-input markup, the group/item iteration and the (byte-identical) empty state and item attribute block. The themes diverge only in class strings, style maps, the keyboard-hint footer and the trailing shortcut chip. This base factors the shared structure and exposes the divergent nodes as abstract sub-builders and the divergent values as abstract members.

This base lives in core and depends only on core props, interaction helpers and the icon view; it must never depend on a theme package.

Inheritance

Constructors

CommandRenderBase(CommandProps props, {Key? key})
const

Properties

dialogClasses String
Class string for the dialog panel element.
no setter
dialogStyles Map<String, String>
Inline styles for the dialog panel element.
no setter
footerStyles Map<String, String>
Inline styles for the footer element.
no setter
groupHeadingClass String
CSS class applied to a group heading.
no setter
groupHeadingStyles Map<String, String>
Inline styles for a group heading.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputClass String
CSS class applied to the raw <input> element.
no setter
inputStyleSuffix String
Trailing portion of the <input> inline style (after the shared prefix flex:1;background:transparent;border:none;).
no setter
itemBaseClass String
Base CSS class for an item row (the disabled marker is appended by the base when the item is disabled).
no setter
key Key?
Controls how one component replaces another component in the tree.
finalinherited
listClasses String
Class string for the results list element.
no setter
listStyles Map<String, String>
Inline styles for the results list element.
no setter
overlayClasses String
Class string for the root overlay/scrim element.
no setter
overlayStyles Map<String, String>
Inline styles for the root overlay/scrim element.
no setter
props CommandProps
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchIconStyles Map<String, String>
Inline styles for the search icon span.
no setter
searchRowStyles Map<String, String>
Inline styles for the search-input row.
no setter

Methods

autoId() String
Generates the auto surface id when CommandProps.id is null. Each theme keeps its own static counter and id prefix.
build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
buildKeyHints() List<Component>
The keyboard-hint components shown in the footer.
buildShortcut(String shortcut) Component
The shortcut chip shown at the trailing end of an item.
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
decorationStyles(ArcaneDecoration? decoration) Map<String, String>
Per-instance decoration overrides. Default: none. A theme overrides this to translate an ArcaneDecoration (elevation intent, theme-specific fields) into its own CSS. Fields a theme does not implement are ignored.
itemStyles(CommandItemProps item) Map<String, String>
Visual styles for a single command item row.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

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