ResourceLoader class abstract
Resource loader.
There are two alternatives to implement it. First, implement this interface directly from scratch. Optionally, invoke loadAsset for handling HTTP requirements, such as partial content, ETag and so on.
Second, you can extend from AssetLoader by overriding
the getAsset
method. In additions to handling HTTP requirements,
AsssetLoader
also provides a caching mechanism to speed up the
loading.
- Implementers
Constructors
- ResourceLoader(String rootDir)
-
factory
Properties
Methods
-
load(
HttpConnect connect, String uri, {bool useCache = true}) → Future - Loads the asset of the given URI to the given response.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited