title: How to turn a Future into a stream for a ListView
body: <p>I am using this AutoCompleteTextField </p>
  
  <p><a href="https://github.com/sharansingh00002/Auto-Complete-TextField-Flutter" rel="nofollow noreferrer">https://github.com/sharansingh00002/Auto-Complete-TextField-Flutter</a></p>
  
  <p>As shown in the example it calls a Future with a URL to pull the data, which populates the dropdown typeahead results.</p>
  
  <p>I need to use the returned data also in another ListView, not just the dropdown of the autocompletetextfield.  </p>
  
  <p>My question is how to turn the Future <code>getLocationSuggestionsList</code> into a Stream so I can use a StreamBuilder for the ListView?</p>
  
  <pre><code>Future&lt;List&lt;String&gt;&gt; getLocationSuggestionsList(String locationText) async {
      final bloc = BlocProvider.of&lt;EditProfileBloc&gt;(context);
      List&lt;String&gt; suggestionList = List();
      LocationModel data = await bloc.fetchLocationSuggestions(locationText);
      if (data != null) {
        for (Predictions predictions in data.predictions) {
          suggestionsKeyValuePairs[predictions.description] = predictions.placeId;
          if (!suggestionList.contains(predictions.description))
            suggestionList.add(predictions.description);
        }
        return suggestionList;
      } else {
        return [''];
      }
    }
  </code></pre>