Use case for FutureProvider
问题 I was wondering what use case exists for the FutureProvider class? I am particularly interested how to load an asynchronous function like Future<Contact> getAllContacts() async { ... } when the ui is built with a FutureProvider , ChangeNotifierProvider or anything similar. Moreover, each time when notifyListeners() is called, I would like to have that provider to rebuild the ui with asynchronous call. Is that any way possible with provider or am I missing something? 回答1: FutureProvider doesn