createTempFile function

String createTempFile({
  1. String? suffix,
})

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

Implementation

String createTempFile({String? suffix}) =>
    // ignore: discarded_futures
    waitForEx(core.createTempFile(suffix: suffix));