loadAsync method

  1. @override
dynamic loadAsync(
  1. dynamic url, [
  2. Function? onProgress
])
override

Implementation

@override
loadAsync(url, [Function? onProgress]) async {
  var loader = FileLoader(manager);
  loader.setPath(path);
  loader.responseType = responseType;
  loader.setRequestHeader(requestHeader);
  loader.setWithCredentials(withCredentials);
  var text = await loader.loadAsync(url);

  var jsonData = convert.jsonDecode(text);

  return parse(jsonData);
}