parent property

DocumentReference<Map<String, dynamic>>? get parent

Returns the parent DocumentReference of this collection or null.

If this collection is a root collection, null is returned.

Implementation

// This always returns a DocumentReference even when using withConverter
// because we do not know what is the correct type for the parent doc. @override
DocumentReference<Map<String, dynamic>>? get parent;