itemEnd method

dynamic itemEnd(
  1. dynamic url
)

Implementation

itemEnd(url) {
  itemsLoaded++;

  if (onProgress != null) {
    onProgress!(url, itemsLoaded, itemsTotal);
  }

  if (itemsLoaded == itemsTotal) {
    isLoading = false;

    if (onLoad != null) {
      onLoad!();
    }
  }
}