generateDocId method
Auto-generate a DocumentId
The unique key generated is prefixed with a client-generated timestamp so that the resulting list will be chronologically-sorted.
Implementation
DocumentId generateDocId() => DocumentId(ref.doc().id);