document method

LDR document(
  1. String path
)

Method to get a reference to a document within the collection.

Parameters:

  • path: The path or ID of the document within the collection.

Example:

LDR userDocument = collectionRef.document('123');

Implementation

LDR document(String path) => LDR(key: "$key/$path", database: database);