DVWorkflowDocumentEditor class

Structural edits to a workflow's step tree.

A parent is either rootParent for the top level, or <stepId>/<branch> for a condition's branch — a string so the same value can travel as a drag payload.

Properties

document → DVWorkflowDocument
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

childrenOf(String parent) → List<DVWorkflowStep>?
The list a parent id addresses, or null when it addresses nothing.
find(String id) → DVWorkflowStep?
insert(DVWorkflowStep step, {required String parent, int? index}) → void
move(String id, {required String parent, int? index}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String id) → DVWorkflowStep
toString() → String
A string representation of this object.
inherited
update(String id, DVWorkflowStep transform(DVWorkflowStep step)) → void

Operators

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

Constants

rootParent → const String
The parent id meaning "the workflow's top-level steps".