isValidCollectionPath function

bool isValidCollectionPath(
  1. String collectionPath
)

Helper method exposed to determine whether a given collectionPath points to a valid Firestore collection.

This is exposed to keep the Pointer internal to this library.

Implementation

bool isValidCollectionPath(String collectionPath) {
  return Pointer(collectionPath).isCollection();
}