DocumentReference constructor

DocumentReference(
  1. FirestoreGateway gateway,
  2. String path
)

Implementation

DocumentReference(FirestoreGateway gateway, String path)
    : super(gateway, path) {
  if (fullPath.split('/').length % 2 == 0) {
    throw Exception('Path is not a document: $path');
  }
}