tempFile method Null safety

  1. @Deprecated('Use createTempFilename')
String tempFile(
  1. {String? suffix}
)
@Deprecated('Use createTempFilename')

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 .tmp unless you provide a suffix in which case the file name will be .

Implementation

@Deprecated('Use createTempFilename')
static String tempFile({String? suffix}) =>
    createTempFilename(suffix: suffix);