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