title: In Flutter How to display result of StreamBuilder in Drawer
body: <p>I have a StreamBuilder in my Widget body</p>
  <pre><code>body: RefreshIndicator(
          onRefresh: () =&gt; _sheetDetailBloc.fetchSheetDetail(
              widget.selectedSheet, widget.selectedSheetTitle),
          child: StreamBuilder&lt;ApiResponse&lt;Sheet&gt;&gt;(
            stream: _sheetDetailBloc.sheetDetailStream,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                switch (snapshot.data.status) {
                  case Status.LOADING:
                    return Loading(loadingMessage: snapshot.data.message);
                    break;
                  case Status.COMPLETED:
                    return ShowSheetDetail(displaySheet: snapshot.data.data);
                    break;
                  case Status.ERROR:
                    return Error(
                      errorMessage: snapshot.data.message,
                      onRetryPressed: () =&gt; _sheetDetailBloc.fetchSheetDetail(
                          widget.selectedSheet, widget.selectedSheetTitle),
                    );
                    break;
                }
  </code></pre>
  <p>I have a drawer in my appbar where i want to display the contactNoToDisp and emailIDToDisp which will arrive after asyc call as snapshot.data.data.contactNo and snapshot.data.data.emailID</p>
  <p>drawer code is below:</p>
  <pre><code>endDrawer: Drawer(
            child: ListView(
          children: &lt;Widget&gt;[
            ListTile(
              title: Text(&quot;First Item&quot;),
            ),
            ListTile(title: Text(contactNoForDisp)),
            ListTile(title: Text(emailIDForDisp)),
          ],
        )),
  </code></pre>
  <p>I am not sure how to update the two class variables contactNoToDisp and emailIDToDisp after the future/asyc has returned so that the same can be dispalyed in the drawer</p>