recreate method
Recursively deletes this Directory, if it exists and then recursively creates it again.
Implementation
Future<void> recreate() async {
// See [MyUtilityExtensionDirectoryRecreateSync] for the sync version.
// ignore: avoid_slow_async_io
if (await exists()) {
await delete(recursive: true);
}
await create(recursive: true);
}