path<T extends Document<DocumentType>> static method

String path<T extends Document<DocumentType>>({
  1. String? id,
  2. String? collectionPath,
})

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;
  }
}