CommandPaletteItem class

A single item in a CommandPalette.

Constructors

CommandPaletteItem({required String label, String? description, String? shortcut, String? group, CmdCallback? onSelect, bool enabled = true})
const

Properties

description String?
Optional secondary description text.
final
enabled bool
Whether the item is selectable.
final
group String?
Group name for section headers. Items with the same group are displayed under a shared header.
final
hashCode int
The hash code for this object.
no setterinherited
label String
Display text for the item.
final
onSelect CmdCallback?
Callback when this item is selected. Returns a Cmd or null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortcut String?
Optional keyboard shortcut hint (displayed right-aligned).
final

Methods

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