load method

PreloadRequest load({
  1. Iterable<String> paths = const [],
  2. bool manifest = false,
})

Loads assets through the registered loaders, replacing whatever Ignis.cache already holds for them.

Enabling manifest loads everything in the Ignis.bundle manifest, while paths can be used for a more targeted preload. Each loader's own filters decide which of them it actually applies to.

The result reports progress and completes as a Future. Calls may overlap freely, since the pool is what bounds the work.

Implementation

PreloadRequest load({
  Iterable<String> paths = const [],
  bool manifest = false,
}) {
  return PreloadRequest._(
    _pool,
    .of(_loaders),
    manifest,
    .of(paths),
  );
}