documentId property

FieldPath documentId

A special FieldPath to refer to the ID of the document.

Returns: A FieldPath for the document ID.

Example:

query.where(FieldPath.documentId, isEqualTo: 'doc1');

Implementation

static FieldPath get documentId {
  List<String> newComponents = ['OID'];
  return FieldPath(newComponents);
}