path<T extends Document<DocumentType> > static method
Implementation
static String path<T extends Document<DocumentType>>({
String? id,
String? collectionPath,
}) {
if (collectionPath != null) {
return id != null ? '$collectionPath/$id' : collectionPath;
} else {
final collectionPath0 = Flamingo.instance.rootReference
.collection(T.toString().toLowerCase())
.path;
return id != null ? '$collectionPath0/$id' : collectionPath0;
}
}