DVWorkflowEditorController class

Editing state for one workflow: selection and undo/redo, the same bargain the page editor makes.

Inheritance

Constructors

DVWorkflowEditorController(DVWorkflowDocument document, {int historyLimit = 100, DVFunctionStore store = const DVWorkflowStore(), bool deployed = false})
Edits document, saving into store -- a database for an app or a server, the Studio API for the Studio a web-server binary serves.

Properties

canRedo → bool
no setter
canUndo → bool
no setter
changed → bool
Whether what is on the canvas differs from what is deployed. Not the same as canUndo: an edit undone is no change, and a Deploy leaves the history but not the change.
no setter
document → DVWorkflowDocument
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
historyLimit → int
final
isDeployed → bool
Whether this function has ever been deployed from here or opened from the store.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedId → String?
no setter
selectedStep → DVWorkflowStep?
no setter

Methods

addInput() → void
Adds an input called inputN, as Text: a new input has a type from the start, so nothing untyped is ever created in the builder.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
inherited
insert(DVWorkflowStep step, {String parent = DVWorkflowDocumentEditor.rootParent, int? index}) → void
Inserts a step. This is a drop from the palette.
move(String id, {String parent = DVWorkflowDocumentEditor.rootParent, int? index}) → void
Reparents a step, including into a condition branch.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
redo() → void
remove(String id) → void
removeInput(int index) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
save() → Future<void>
Persists the workflow, which publishes it.
select(String? id) → void
setInput(int index, DVWorkflowParameter input) → void
setReturns(DVWorkflowType? type) → void
What the workflow returns, or null for nothing.
toString() → String
A string representation of this object.
inherited
undo() → void
update(String id, DVWorkflowStep transform(DVWorkflowStep step)) → void
viewCode() → String
The Dart this workflow exports to — the view-code panel.

Operators

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