NodeEditorRunner class

Runs the graph.

Execution reads the document and never writes to it: no node moves, the revision does not change, nothing lands in the undo history and the project does not become dirty. Runtime values live in the run, not on the ports — which is the one place this design has to differ from an editor whose model is mutable, and the reason a run is immune to edits made while it is in flight.

Constructors

NodeEditorRunner(NodeEditorController _controller)

Properties

hashCode → int
The hash code for this object.
no setterinherited
isRunning → bool
no setter
lastRun → GraphRun?
The most recent completed run, or null if none has finished.
no setter
onEvent ↔ GraphRunListener?
Told about each run as it happens: every turn a node takes, what was on the wires into and out of it, every remark, every line an executor logs.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tracePayloads ↔ bool
Whether events carry the values on the wires.
getter/setter pair

Methods

cancel() → void
Asks the current run to stop. A no-op when nothing is running.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run({Iterable<String>? from, int maxSteps = 1024, Duration? timeout}) → Future<GraphRun>
Runs the graph and reports what happened.
stateOf(String nodeId) → NodeRunState
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

yieldEvery → const int
Node executions between yields to the event loop.