collection property

FirestoreCollectionPath get collection

The collection that contains this document.

Implementation

FirestoreCollectionPath get collection =>
    path.parent!.toFirestoreCollection();