selfDocument property

DocumentReference<T> get selfDocument

Returns the document reference of this document.

Implementation

DocumentReference<T> get selfDocument {
  var reference = selfCollection.doc(id);
  id = reference.id; // Set the auto-generated ID that is created by using a null ID
  return reference;
}