isValidDocumentPath function

bool isValidDocumentPath (
  1. String documentPath
)

Helper method exposed to determine whether a given documentPath points to a valid Firestore document.

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

Implementation

bool isValidDocumentPath(String documentPath) {
  return Pointer(documentPath).isDocument();
}