documentFromID method

DatabaseReference documentFromID(
  1. Type type,
  2. String documentID, {
  3. String? subcollection,
})

Returns a reference to a document using its class and document ID.

Implementation

DatabaseReference documentFromID(Type type, String documentID, { String? subcollection }) {
  return RDB.instance.ref(RDB.constructPathForClassAndID(type, documentID, subcollection: subcollection));
}