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 _collectionPath = Flamingo.instance.rootReference
.collection(T.toString().toLowerCase())
.path;
return id != null ? '$_collectionPath/$id' : _collectionPath;
}
}