onRefresh property

FutureVoidCallback? onRefresh
final

Callback invoked when refresh is triggered.

Should return a Future that completes when the refresh operation finishes. While the Future is pending, the refresh indicator shows loading state.

Implementation

final FutureVoidCallback? onRefresh;