loadAsync method

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

Implementation

@override
loadAsync(url, [Function? onProgress]) async {
  var completer = Completer();

  load(url, (buffer) {
    completer.complete(buffer);
  }, onProgress, () {});

  return completer.future;
}