doc method Null safety

DocumentReference<T> 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

DocumentReference<T> doc([String? path]);