DVPageDocumentEditor class
The operations a drag-and-drop surface calls. UI gestures reduce to these four; everything else in the builder is chrome around them.
Constructors
- DVPageDocumentEditor(DVPageDocument document)
Properties
- document → DVPageDocument
-
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
-
find(
String id) → DVPageNode? -
insert(
DVPageNode node, {required String parent, int? index}) → void -
Inserts
nodeunderparent, atindexor the end. This is a drop. -
move(
String id, {required String parent, int? index}) → void - Reparents the node. This is a drag between containers.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String id) → DVPageNode - Removes the node. This is a delete.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String id, DVPageNode transform(DVPageNode node)) → void -
Replaces the node with
transform's result. This is the inspector.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited