DatabasePathUtils class

Helper methods for manipulating database paths.

Constructors

DatabasePathUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getDatabasePath(String collectionPath, String documentId) String
Returns the full path of the document.
getDocumentId(String documentPath) String
Returns the ID of the document.
getParentCollectionPath(String path) String?
Returns the parent collection path of the provided entity path.
getParentDocumentPath(String path) String?
Returns the parent document path of the provided entity path.
isValidCollectionPath(String path) bool
Checks if the provided path is a valid collection path.
isValidDocumentPath(String path) bool
Checks if the provided path is a valid document path.