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

hashCode int
The hash code for this object.
no setterinherited
rootDir String
The root directory.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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