saveToDownloadsIos static method
Implementation
static Future<bool> saveToDownloadsIos(
String content, String fileName, String extension) async {
try {
Directory downloadDirectory = await getDownloadDirectory();
final filePath = '${downloadDirectory.path}/$fileName.$extension';
final file = File(filePath);
await file.writeAsString(content);
return true;
} catch (e) {
return false;
}
}