getTempFilePath static method
Generates a full file path inside the temporary directory.
Example:
// Produces "/.../temp/rec_1723368291000.m4a"
final path = await CkPath.getTempFilePath(
prefix: 'rec_',
extension: 'm4a',
);
Implementation
static Future<String> getTempFilePath({
String? fileName,
String? prefix,
String? extension,
}) async {
final temp = await tempPath;
final name = _resolveFileName(
fileName: fileName,
prefix: prefix,
extension: extension,
);
return join(temp, name);
}