doc method

DocRef<D> doc([
  1. String? path
])

Returns a DocumentReference with the provided path.

If no path is provided, an auto-generated ID is used.

The unique key generated is prefixed with a client-generated timestamp so that the resulting list will be chronologically-sorted.

Implementation

DocRef<D> doc([String? path]) => DocRef._(_firestore, raw.doc(path));