Source
ResourceManagerResource(this.kind, this.name, this.url, Future loader) { loader.then((resource) { _value = resource; }).catchError((error) { _error = error; }).whenComplete(() { _completer.complete(this); }); }
ResourceManagerResource(this.kind, this.name, this.url, Future loader) { loader.then((resource) { _value = resource; }).catchError((error) { _error = error; }).whenComplete(() { _completer.complete(this); }); }