collection method
Returns a reference to a collection using its class.
Implementation
DatabaseReference collection(Type type, { String? subcollection }) {
return RDB.instance.ref(RDB.constructPathForClass(type, subcollection: subcollection));
}
Returns a reference to a collection using its class.
DatabaseReference collection(Type type, { String? subcollection }) {
return RDB.instance.ref(RDB.constructPathForClass(type, subcollection: subcollection));
}