edit method

OrgZipper edit()

Obtain a zipper starting at the root of this tree. The zipper can be used to edit the tree; call ZipperLocation.commit to obtain a new tree with the edits applied.

Implementation

OrgZipper edit() => ZipperLocation.root(
      sectionP: (obj) => obj is OrgParentNode,
      node: this,
      getChildren: (obj) => obj.children,
      makeSection: (node, children) => node.fromChildren(children),
    );