title: how to create instances of StreamBuilder<UserModel>
body: <p>I have this part in my code that I want to repeat throughout the project and I wish to just be able to call this function elsewhere, but the problem is that you need to pass <code>snapshot.data</code> to the <code>widget</code> down the tree,, any ideas how to do that ?</p>
  <pre><code>Widget UserStreamBuilderShortcut(BuildContext context, Widget widget){
  
    final _user = Provider.of&lt;UserModel&gt;(context);
  
    return
  
      StreamBuilder&lt;UserModel&gt;(
        stream: UserProvider(userID: _user.userID).userData,
        builder: (context, snapshot){
          if(snapshot.hasData == false){
            return LoadingFullScreenLayer();
          } else {
            UserModel userModel = snapshot.data; // cant pass this to instances of UserStreamBuilderShortcut Widget
            return
              widget; // in instances of this UserStreamBuilderShortcut we need to be able to pass snapshot.data here
          }
        },
      );
  
  }
  </code></pre>