Get temp file created in temporary directory of device.
static Future<File> getTempFile(String filename) async { final dir = await getTemporaryDirectory(); return File('$dir/$filename'); }