setURLModifier method

LoadingManager setURLModifier(
  1. String transform(
    1. String
    )?
)

callback — URL modifier callback. Called with url argument, and must return resolvedURL.

If provided, the callback will be passed each resource URL before a request is sent. The callback may return the original URL, or a new URL to override loading behavior. This behavior can be used to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.

Note: The following methods are designed to be called internally by loaders. You shouldn't call them directly.

Implementation

LoadingManager setURLModifier(String Function(String)? transform) {
  urlModifier = transform;
  return this;
}