createTempFile function
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 <uuid>.tmp
unless you provide a suffix in which
case the file name will be <uuid>.<suffix>
@Throwing(ArgumentError)
Implementation
String createTempFile({String? suffix}) {
final filename = createTempFilename(suffix: suffix);
touch(filename, create: true);
return filename;
}