TCommandItem class

A single actionable item in a TCommandPalette.

Constructors

TCommandItem({required String id, required String title, String? subtitle, dynamic icon, String? shortcut, String? badge, List<String> keywords = const [], required VoidCallback onSelect})
const

Properties

badge → String?
Optional status or category badge.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → dynamic
Leading icon (IconData or Widget).
final
id → String
Unique identifier for this command.
final
keywords → List<String>
Additional keywords for search matching.
final
onSelect → VoidCallback
Action executed when the command is triggered.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortcut → String?
Visual shortcut pill (e.g. '⌘K', '⌘P').
final
subtitle → String?
Optional secondary description.
final
title → String
Primary title of the command.
final

Methods

matches(String query) → bool
Checks if this item matches the 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