title: Stream builder delay issue in flutter
body: <p>I have a stream builder, but it shows a different stream Query depends on user selection.</p>
  <p>There is a problem when using changes the selection, that there is a small delay between getting the stream Query of the selection, so very briefly, the previous query shows up and changes to the selected query right away. I am wondering is there any way that I can prevent showing the query during that delay time.</p>
  <pre><code>  body: ListView(
      children: &lt;Widget&gt;[
    select(),// decide buyOrSell
    StreamBuilder(
        stream: buyOrSell == &quot;buy&quot;
            ? FirebaseFirestore.instance
                .collection(&quot;buy&quot;)
                .doc(widget.profileId)
                .collection(&quot;barter&quot;)
                .orderBy('timestamp', descending: true)
                .snapshots()
            : FirebaseFirestore.instance
                .collection(&quot;sell&quot;)
                .doc(widget.profileId)
                .collection(&quot;barter&quot;)
                .orderBy('timestamp', descending: true)
                .snapshots(),
  </code></pre>