NmPaletteCommand class
A command available in the command palette.
Constructors
-
NmPaletteCommand({required String id, required String label, required NmIconData icon, required NmCommandCategory category, String? description, String? shortcut, NmCommandAccess access = NmCommandAccess.free, List<
String> keywords = const []}) -
Creates a NmPaletteCommand.
const
Properties
- access → NmCommandAccess
-
Access.
final
- category → NmCommandCategory
-
Category.
final
- description → String?
-
Description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → NmIconData
-
Icon.
final
- id → String
-
Id.
final
- isAdmin → bool
-
Is admin.
no setter
- isPremium → bool
-
Is premium.
no setter
-
keywords
→ List<
String> -
Keywords.
final
- label → String
-
Label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcut → String?
-
Shortcut.
final
Methods
-
matchesQuery(
String query) → bool - Check if command matches search query.
-
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