collection method

CollectionReference collection(
  1. String collectionPath
)

Gets a CollectionReference instance that refers to the collection at the specified path. The collectionPath parameter is a slash-separated path to a collection.

Returns non-null CollectionReference instance.

Implementation

CollectionReference collection(String collectionPath) =>
    CollectionReference.getInstance(jsObject.collection(collectionPath));