copy method

dynamic copy(
  1. dynamic newPathFile
)

Implementation

copy(newPathFile) {
  if (newPathFile.toString().isNotEmpty) {
    File(pathFile).copySync(newPathFile);
    return true;
  } else {
    return false;
  }
}