update method

ZipperLocation<ZR, ZI, ZS> update({
  1. required dynamic node,
  2. required Path<ZR> path,
})

A helper method to copy the definition methods

Implementation

ZipperLocation<ZR, ZI, ZS> update(
    {required dynamic node, required Path<ZR> path}) {
  assert(node is ZI || node is ZS);
  return ZipperLocation(
      sectionP: sectionP,
      getChildren: getChildren,
      makeSection: makeSection,
      node: node,
      path: path);
}