documentFromID method
Returns a reference to a document using its class and document ID.
Implementation
DocumentRef documentFromID(Type type, String documentID, { String? subcollection }) {
if (subcollection != null) {
return LS.instance.collection(type.toString()).doc(subcollection).collection(subcollection).doc(documentID);
}
return LS.instance.collection(type.toString()).doc(documentID);
}