Source
Future<Entry> moveTo(DirectoryEntry parent, {String name}) { var completer = new Completer<Entry>(); _moveTo(parent, name: name, successCallback: (value) { completer.complete(value); }, errorCallback: (error) { completer.completeError(error); }); return completer.future; }