shareFile function
Implementation
Future<void> shareFile({required String url, String? savePath}) async {
final path = await downloadFile(url: url, savePath: savePath);
if (path != null) {
Share.shareXFiles([XFile(path)]);
}
}
Future<void> shareFile({required String url, String? savePath}) async {
final path = await downloadFile(url: url, savePath: savePath);
if (path != null) {
Share.shareXFiles([XFile(path)]);
}
}