add static method
key
— the key
to reference the cached file
by.
file
— The file to be cached.
Adds a cache entry with a key to reference the file. If this key already holds a file, it is overwritten.
Implementation
static void add(String key, dynamic file) {
if (enabled == false) return;
//print( 'THREE.Cache Adding key: $key');
files[key] = file;
}