documentId property

FieldPath documentId
final

A special FieldPath value to refer to the ID of a document. It can be used in queries to sort or filter by the document ID.

Implementation

static final documentId = FieldPath(const <String>['__name__']);