load method

  1. @override
dynamic load(
  1. dynamic url,
  2. Function onLoad, [
  3. Function? onProgress,
  4. Function? onError,
])
override

Implementation

@override
load(url, Function onLoad, [Function? onProgress, Function? onError]) async {
  var loader = FileLoader(manager);
  loader.setPath(path);
  loader.setResponseType('text');
  final data = await loader.load(url, (text) {
    // try {
    onLoad(parse(text));
    // } catch ( e ) {

    // 	if ( onError != null ) {

    // 		onError( e );

    // 	} else {

    // 		print( e );

    // 	}

    // 	this.manager.itemError( url );

    // }
  }, onProgress, onError);

  return data;
}