CommandPaletteComponent<T> class
final
Renders an EditorCommandPalette as a scrolling modal overlay.
State, filtering, navigation, and execution remain in EditorCommandPalette. This component owns presentation and guarantees that the selected command remains inside the visible window.
Constructors
-
CommandPaletteComponent({required EditorCommandPalette<
T> palette, String title = 'Command Palette', int viewportSize = 7, int width = 72}) -
const
Properties
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overlay → CommandPaletteOverlay
-
no setter
-
palette
→ EditorCommandPalette<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
- viewportSize → int
-
final
-
visibleWindow
→ List<
EditorCommand< T> > -
Commands currently visible in the scrolling window.
no setter
- width → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
String baseView, {required int screenWidth, required int screenHeight}) → String -
Renders the open palette over
baseView. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited