A change to an editor's document as a typed value: a command's name and what it carries.
The one shape every route into the document takes: a key, a menu,
an agent over MCP and a plugin's panel all run a command, and an editor
reads it back from toJson by its name. An editor's own command
hierarchy (DocumentCommand in flutter3d_editor_core) is one of
these, and so is a plugin's (PluginCommand); a panel written against
the widgets alone, which cannot see that package, extends this
directly. A panel hands one to its context (EditorPanelContext.runCommand)
rather than spelling the map by hand.
base, so a member added here in a 1.x release arrives with a body.
Constructors
- EditorCommandValue()
-
For a command class, which supplies name and arguments.
const
Properties
-
arguments
→ Map<
String, Object?> -
Everything it carries but its name, as JSON writes it.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
What the command is called:
<namespace>.<name>for a plugin's, one word for one of the editor's own.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The command as a map, ready for
jsonEncode: name undercommand, then arguments. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited