id property

String get id

The id of the document: the last segment of its path.

Implementation

String get id => _key.path.last;