copyFile static method

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

复制文件。

Implementation

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