ResourceManagerResource(String kind, String name, String url, Future loader)

Source

ResourceManagerResource(this.kind, this.name, this.url, Future loader) {

  loader.then((resource) {
    _value = resource;
  }).catchError((error) {
    _error = error;
  }).whenComplete(() {
    _completer.complete(this);
  });
}