DVSceneAssetLoader class final

Loads scene assets under a policy.

Constructors

DVSceneAssetLoader({DVSceneAssetPolicy policy = const DVSceneAssetPolicy(), required Map<DVSceneAssetSource, DVSceneAssetFetch> fetchers, String tenant()?, DVSceneAssetDecode? decode})

Properties

changes → Stream<DVSceneAssetChange>
no setter
hashCode → int
The hash code for this object.
no setterinherited
policy → DVSceneAssetPolicy
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

forget(String key) → void
Forgets key, so the next load fetches again.
load(String key, DVSceneAsset asset) → Future<DVSceneAssetState>
Loads asset as key. A second call for the same key and asset shares the first load; a different asset under the key starts a new one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stateOf(String key) → DVSceneAssetState
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decodeOn(DVWorkers workers) → DVSceneAssetDecode
Decodes models on workers, off the calling isolate.