first property

String get first

The first segment in the path

Implementation

String get first => _single ?? _segments!.first;