copy static method
Implementation
static Future<File?> copy(String filePath,String toFilePath) async{
if (!isFile(filePath)){
return null;
};
File file = File(filePath);
try {
File toFile = await file.copy(toFilePath);
return toFile;
} catch (e) {
print("FFile copy e = $e");
return null;
}
}