collection method
Gets a CollectionReference that refers to the collection at
collectionPath.
Implementation
CollectionReference<Map<String, Object?>> collection(String collectionPath) {
checkNonEmptyPath('Firestore.collection', collectionPath);
return CollectionReference<Map<String, Object?>>.forPath(
ResourcePath.fromString(collectionPath),
this,
);
}