copyFile static method

Future<void> copyFile(
  1. String sourceKey,
  2. String destinationKey
)

Implementation

static Future<void> copyFile(String sourceKey, String destinationKey) async {
  final File sourceFile = File("${_bigFilesDirectory.path}/$sourceKey.dat");
  if (sourceFile.existsSync()) {
    await sourceFile.copy("${_bigFilesDirectory.path}/$destinationKey.dat");
  }
}