moveTo method

void moveTo(
  1. String dest
)

将当前文件或目录移动到指定路径。

dest 目标路径。

Implementation

void moveTo(String dest) {
  File(filename).renameSync(dest);
}