Future removeRecursively()

Source

Future removeRecursively() {
  var completer = new Completer();
  _removeRecursively(() {
    completer.complete();
  }, (error) {
    completer.completeError(error);
  });
  return completer.future;
}