tempFile static method
Generates a temporary filename in the system temp directory that is guaranteed to be unique.
This method does not create the file.
The temp file name will be
Implementation
static String tempFile({String? suffix}) {
var finalsuffix = suffix ?? 'tmp';
if (!finalsuffix.startsWith('.')) {
finalsuffix = '.$finalsuffix';
}
const uuid = Uuid();
return '${join(Directory.systemTemp.path, uuid.v4())}$finalsuffix';
}