LexicalCommand<P> class
final
A dispatchable, typed command.
Identity, not the label, distinguishes commands: two commands with the same label are different commands. The label exists for debugging.
The type parameter gives genuinely better payload typing than upstream's,
because the handler signature is checked at the registration site. Use it
— a dynamic payload throws away the main advantage of the port.
Constructors
- LexicalCommand(String label)
-
Creates a command labelled
labelcarrying a payload of typeP.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited