callRefresh method

Future callRefresh({
  1. double? overOffset,
  2. Duration? duration = const Duration(milliseconds: 200),
  3. Curve curve = Curves.linear,
  4. ScrollController? scrollController,
  5. 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,
  );
}