getTempFile static method

Future<File> getTempFile(
  1. String filename
)

Get temp file created in temporary directory of device.

Implementation

static Future<File> getTempFile(String filename) async {
  final dir = await getTemporaryDirectory();
  return File('$dir/$filename');
}