add method

LoaderItem add(
  1. String source
)

Adds a new item to be tracked by the loader.

Sets loadingSequenceFinished to false as a new item is being added.

  • source: A string identifying the source of the item (e.g., URL, path). Returns the created LoaderItem instance.

Implementation

LoaderItem add(String source) {
  loadingSequenceFinished = false;
  var result = LoaderItem(source);
  _items.add(result);
  return result;
}