doc method
Implementation
Document doc(String id) {
final blockId = '$_name/$id';
return Document(
blockId: blockId,
serializer: _serializer,
ws: _ws,
crypto: _crypto,
cache: _cache,
secretKey: _secretKey,
smartCache: _smartCache,
local: _local,
onMutate: () {
_pendingTags.remove(blockId);
_invalidateQueryCacheFor(blockId);
},
onSet: _indexedFields.isNotEmpty ? (data) => _put(id, data) : null,
);
}