collection method

CollectionReference<Map<String, Object?>> collection(
  1. String collectionPath
)

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,
  );
}