recreateSync method
void
recreateSync()
Synchronously and recursively deletes this Directory, if it exists and then recursively creates it again.
Implementation
void recreateSync() {
if (existsSync()) {
deleteSync(recursive: true);
}
createSync(recursive: true);
}