moveTo 方法

  1. @JSName('moveTo')
Future<Entry> moveTo(
  1. DirectoryEntry parent,
  2. {String? name}
)

实现

@JSName('moveTo')
Future<Entry> moveTo(DirectoryEntry parent, {String? name}) {
  var completer = new Completer<Entry>();
  _moveTo(parent, name, (value) {
    completer.complete(value);
  }, (error) {
    completer.completeError(error);
  });
  return completer.future;
}