complete method

void complete()

Completes the current loading or refreshing action.

If the controller is currently loading, it calls loadComplete to indicate that loading has finished. If the controller is currently refreshing, it calls refreshCompleted to indicate that the refresh has finished.

Implementation

void complete() {
  if (isLoading) {
    footerMode!.value = LoadStatus.idle;
    loadComplete(); // Call to mark loading as complete
  } else if (isRefresh) {
    refreshCompleted(); // Call to mark refreshing as complete
  }
}