moveFile static method

Future<void> moveFile(
  1. String sourcePath,
  2. String destinationPath
)

移动文件。

Implementation

static Future<void> moveFile(
    String sourcePath, String destinationPath) async {
  File sourceFile = File(sourcePath);
  await sourceFile.rename(destinationPath);
}