NetworkAssetBundle class
An AssetBundle that loads resources over the network.
This asset bundle does not cache any resources, though the underlying network stack may implement some level of caching itself.
- Inheritance
-
- Object
- AssetBundle
- NetworkAssetBundle
Constructors
- NetworkAssetBundle(Uri baseUrl)
- Creates a network asset bundle that resolves asset keys as URLs relative to the given base URL.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
If this is a caching asset bundle, clear all cached data.
inherited
-
evict(
String key) → void -
If this is a caching asset bundle, and the given key describes a cached
asset, then evict the asset from the cache so that the next time it is
loaded, the cache will be reread from the asset bundle.
inherited
-
load(
String key) → Future< ByteData> -
Retrieve a binary resource from the asset bundle as a data stream.
override
-
loadBuffer(
String key) → Future< ImmutableBuffer> -
Retrieve a binary resource from the asset bundle as an immutable
buffer.
inherited
-
loadString(
String key, {bool cache = true}) → Future< String> -
Retrieve a string from the asset bundle.
inherited
-
loadStructuredBinaryData<
T> (String key, FutureOr< T> parser(ByteData data)) → Future<T> -
Retrieve ByteData from the asset bundle, parse it with the given function,
and return that function's result.
inherited
-
loadStructuredData<
T> (String key, Future< T> parser(String value)) → Future<T> -
Retrieve a string from the asset bundle, parse it with the given function,
and return that function's result.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited