CommandPaletteOverlay class final
Renders a CommandPaletteController as a scrolling modal overlay.
Matching, selection, and the visible window live on controller. This view owns chrome and paints the shared body leaf produced by renderCommandPaletteBody.
Constructors
- CommandPaletteOverlay({required CommandPaletteController controller, required bool isOpen, String title = 'Command Palette', int viewportSize = 7, int width = 72, String emptyLabel = 'No matching commands'})
-
const
Properties
- controller → CommandPaletteController
-
final
- emptyLabel → String
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpen → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
- viewportSize → int
-
final
-
visibleItems
→ List<
CommandPaletteItem> -
Items 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