RefreshCallback typedef

RefreshCallback = Future<bool> Function()

The signature for a function that's called when the user has dragged a PullToRefreshNotification far enough to demonstrate that they want the app to refresh. The returned Future must complete when the refresh operation is finished.

Used by PullToRefreshNotification.onRefresh.

Implementation

typedef RefreshCallback = Future<bool> Function();