constructPathForClass static method

String constructPathForClass(
  1. String typeName, {
  2. String? subcollection,
})

Constructs a path for a class.

Implementation

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