constructPathForClassAndID static method

String constructPathForClassAndID(
  1. String typeName,
  2. String id, {
  3. String? subcollection,
})

Constructs a path for a RDB object based on its type and ID.

Implementation

static String constructPathForClassAndID(final String typeName, String id, {String? subcollection}) {
  if (subcollection == null) {
    return "$typeName/$id";
  }
  return "$typeName:$subcollection/$id";
}