CommandPaletteItem class final

A portable command-palette item, independent of any widget framework.

Constructors

CommandPaletteItem({required String label, String? id, Object? payload, String? description, String? shortcut, String? group, List<String> tags = const [], CommandPaletteCallback? onSelect, bool enabled = true})
const

Properties

description → String?
final
enabled → bool
final
group → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Stable identity used to map items across rebuilds.
final
identity → String
Identity used for selection restoration. Prefers id, then label.
no setter
label → String
final
onSelect → CommandPaletteCallback?
final
payload → Object?
Host-defined payload such as an editor command or completion item.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortcut → String?
final
tags → List<String>
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