onLoad property

OnLoadCallback? onLoad
final

Callback invoked when pulled by loadTriggerPullDistance.

If provided, must return a Future which will keep the indicator in the LoadMode.refresh state until the Future completes.

Can be null, in which case a single frame of LoadMode.armed state will be drawn before going immediately to the LoadMode.done where the sliver will start retracting.

Implementation

final OnLoadCallback? onLoad;