front property

ChildKey? get front

The first segment, or null for the root.

Implementation

ChildKey? get front => segments.isEmpty ? null : segments.first;