constructPathForClass static method

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

Constructs a path for a class.

Implementation

static String constructPathForClass(Type type, {String? subcollection}) {
  if (subcollection == null) {
    return type.toString();
  }
  return "${type.toString()}:$subcollection";
}