renameFile method
Rename a file from oldPath to newPath. Returns true if successful, false otherwise.
Implementation
@override
bool renameFile(String oldPath, String newPath) {
try {
io.File(oldPath).renameSync(newPath);
return true;
} catch (_) {
return false;
}
}