copyFile function
Copies a file from
the source file to
the destination file.
Implementation
void copyFile(String from, String to, {bool recursive = false}) {
if (recursive) {
File(to).createSync(recursive: true);
}
File(from).copySync(to);
}