marcglasberg / async_redux

Flutter Package: A Redux version tailored for Flutter, which is easy to learn, to use, to test, and has no boilerplate. Allows for both sync and async reducers.
Other
234 stars 40 forks source link

Create dispatchFuture() that returns a Future which completes as soon as the action finishes. #14

Closed marcglasberg closed 5 years ago

marcglasberg commented 5 years ago

You would use it for things like the RefreshIndicator that needs a Future to tell it when the action finishes:

RefreshIndicator(
        onRefresh: () {       
            return store.dispatchFuture(GetOverview());
            child: ListView(...),
marcglasberg commented 5 years ago

Done. See version: 1.3.8.