loadAsync method

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

Implementation

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

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

  return completer.future;
}