DiagramVerbCall class final

One call of a verb: its targets, decoded arguments and the part it is bound to. Verb implementations read the controller's current state through it and submit their edit.

Available extensions

Properties

args → Map<String, Object?>
The decoded arguments that were supplied.
final
controller → DiagramController
final
document → DiagramDocument
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setter
ids → List<String>
The target elements, in call order; empty for a diagram verb.
final
part → String?
The shape part this verb is bound to, such as a table's slot, or null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scene → ResolvedScene
no setter
verb → DiagramVerb
final

Methods

arg<T>(String name) → T
The required argument name.
has(String name) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional<T>(String name) → T?
The argument name, or null when it was omitted.
read<T>(DiagramVerbParameter<T> parameter) → T
Reads the argument through its declaration, preserving its value type.
submit(DiagramTransaction transaction, {int? expectedRevision}) → EditResult
Submits the verb's edit through admission and history.
toString() → String
A string representation of this object.
inherited
updateText({String? storyId, required String label, required TextStory? transform(ResolvedDiagramTextTarget target)}) → EditResult

Available on DiagramVerbCall, provided by the DiagramTextVerbCall extension

Replaces one story of the target with transform's result as one undoable edit. transform returns null when it does not apply.

Operators

operator ==(Object other) → bool
The equality operator.
inherited