callRefresh method
Future
callRefresh({
- double? overOffset,
- Duration? duration = const Duration(milliseconds: 200),
- Curve curve = Curves.linear,
- ScrollController? scrollController,
- bool force = false,
Automatically trigger refresh.
overOffset
Offset beyond the trigger offset, must be greater than 0.
duration
See ScrollPosition.animateTo.
curve
See ScrollPosition.animateTo.
scrollController
When position is not ScrollPosition, you can use ScrollController.
force
Enforce execution even if the task is in progress. But you have to handle the completion event.
Implementation
Future callRefresh({
double? overOffset,
Duration? duration = const Duration(milliseconds: 200),
Curve curve = Curves.linear,
ScrollController? scrollController,
bool force = false,
}) async {
await _state?._callRefresh(
overOffset: overOffset,
duration: duration,
curve: curve,
scrollController: scrollController,
force: force,
);
}