getCollPath static method
Implementation
static PathEntity getCollPath(
DbEntity entity, String name, DocRefRepo? parentDoc) {
if (parentDoc == null) {
return PathEntity(
name: name,
entity: entity,
parentPath: null,
);
} else {
return PathEntity(
name: name,
entity: entity,
parentPath: parentDoc.path,
);
}
}