ent state and observing changes from the collection, enabling reactive UI patterns.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">collection.documentFlow("userProfile")<br>    .collect { doc: Document? -&gt;<br>        // consume Document<br>    }</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><h4 class