moveTo 方法
- @JSName('moveTo')
- DirectoryEntry parent,
- {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;
}