child method

Address child(
  1. String segment
)

The same address one segment deeper.

Implementation

Address child(String segment) => copyWith(segments: [...segments, segment]);