copy static method

bool copy(
  1. String srcPath,
  2. String destPath
)

Implementation

static bool copy(String srcPath, String destPath) {
  final src = File(srcPath);
  if (!src.existsSync()) return false;
  try {
    src.copySync(destPath);
    return true;
  } catch (e) {
    return false;
  }
}