getCollPath static method

PathEntity getCollPath(
  1. DbEntity entity,
  2. String name,
  3. DocRefRepo? parentDoc
)

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,
    );
  }
}