name property

String get name

The leaf name (last path segment).

Implementation

String get name => path.isNotEmpty ? path.last : id;