itemEnd method

void itemEnd(
  1. String url
)

url — the loaded url

This should be called by any loader using the manager when the loader ended loading an url.

Implementation

void itemEnd(String url) {
  itemsLoaded++;

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

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

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