doc method

Document doc(
  1. String id
)

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,
  );
}