track method
Reports the snapshots document takes, as documentId, once started.
A later call for the same documentId replaces this one.
Implementation
void track(String documentId, CRDTDocument document) {
if (_controller.isClosed) {
return;
}
_documents[documentId] = document;
if (_started) {
_subscribe(documentId, document);
}
}