Dart Component: How to return result of asynchronous callback?
问题 Hey there I am quite new to Dart Futures and I have the following situation. Whenever a user types a letter in the UI the addressChanged() method in my ui_component is called. This method calls the method getProposals() in my maps componenet which does an asynchronous request to the google maps API. As soon as the results are here I want to return them to the UI Component which is going to populate the propasals dropdown in the UI. I am stuck with the last step: How (and whats the best way)