tempDir function
Get a Directory with a random name inside the Directory.systemTemp
directory.
The directory is created automatically.
Implementation
Directory tempDir({String suffix = ''}) {
final dir = Directory.systemTemp.path;
return Directory(
p.join(dir, 'dtemp-${_random.nextInt(pow(2, 31).toInt())}$suffix'))
..createSync();
}