child method

OccurrenceAddress child(
  1. int childIndex
)

Create a child address by appending an occurrence index. Use this when navigating to a child occurrence.

Implementation

OccurrenceAddress child(int childIndex) =>
    OccurrenceAddress([...path, childIndex]);