load method
Implementation
load(url, Function onLoad, [Function? onProgress, Function? onError]) async {
var loader = new FileLoader(this.manager);
loader.setPath(this.path);
loader.setResponseType('text');
final data = await loader.load(url, (text) {
// try {
if (onLoad != null) {
onLoad(this.parse(text));
}
// } catch ( e ) {
// if ( onError != null ) {
// onError( e );
// } else {
// print( e );
// }
// this.manager.itemError( url );
// }
}, onProgress, onError);
return data;
}