title: StreamProvider - Flutter - How to update stream/s on user login
body: <p>I am building an app with the below structure to get a list of transactions that the user has added/performed.</p>
  <p><a href="https://i.stack.imgur.com/oYs0T.png" rel="nofollow noreferrer">App Screens Structure</a></p>
  <p>Above the Material app in main.dart I have a streamProvider which is dependent on the Firebase UID(shown in the code snippet).</p>
  <p>Anticipated behaviour: Whenever user logs in they should be getting a stream of transactiosn for thier UID.</p>
  <p>Actual behaviour: Whenever the user logs in they still see the transactions from the 'someID' collection even though they have logged in.</p>
  <pre><code>var dbTransactionRef = db
          .collection('users')
          .doc(_auth.currentUser == null ? 'someId' : _auth.currentUser.uid)
          .collection('transactions');
  
  
  StreamProvider&lt;List&lt;T.Transaction&gt;&gt;.value(
            initialData: [T.Transaction()],
            value: dbTransactionRef.snapshots().map((snapshot) =&gt; snapshot.docs
                .map((document) =&gt; T.Transaction.fromJSON(document.data()))
                .toList()),
          ),
  
  </code></pre>
  <p>It seems like the stream is not updating on login of a user. Please could you help me to update the code to get the anticipated behaviour? Thanks!</p>