DesignCommand class

A command in a palette.

Annotations

Constructors

DesignCommand({required String label, VoidCallback? onPressed, String? group, List<String> keywords = const [], String? shortcut, bool enabled = true, Object? data})
A command labelled, in group, that onPressed runs.
const

Properties

data → Object?
Anything the look needs to paint it (an icon).
final
enabled → bool
Whether it can run.
final
group → String?
The heading it is listed under; null: the first, unheaded group.
final
hashCode → int
The hash code for this object.
no setterinherited
keywords → List<String>
Other words that find it.
final
label → String
Its name.
final
onPressed → VoidCallback?
Runs it, after the palette closed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortcut → String?
Its key, for the look to show ("⌘S").
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