id property

String get id

The ID of the document within its collection.

Implementation

String get id => key.path.last;