renameSync method
Synchronously rename this file.
Return a File
instance for the renamed file.
The newPath
must be absolute and normalized.
If newPath
identifies an existing file, that file is replaced.
If newPath
identifies an existing resource the operation might fail and
an exception is thrown.
Implementation
@override
File renameSync(String newPath) {
final newFile = fileSystem.file(newPath);
file.renameSync(newPath);
return AnalyzerFile(newFile, provider);
}