RefreshCallback typedef Null safety

RefreshCallback = Future<void> Function()

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

Used by RefreshIndicator.onRefresh.

Implementation

typedef RefreshCallback = Future<void> Function();