getTmpFile static method
Get a temporary file.
This method doesn't create the file.
Implementation
static File getTmpFile(ext, {prefix: 'tmp_', postfix}) {
postfix ??= TimeUtilities.DAYHOURMINUTE_TS_FORMATTER.format(DateTime.now());
var fileName = prefix + postfix + '.' + ext;
var dir = Directory.systemTemp.createTempSync();
return File("${dir.path}/$fileName");
}