Future<Metadata> getMetadata()

Source

Future<Metadata> getMetadata() {
  var completer = new Completer<Metadata>();
  _getMetadata(
      (value) { completer.complete(value); },
      (error) { completer.completeError(error); });
  return completer.future;
}