shareFiles method
void
shareFiles()
Implementation
void shareFiles() async {
List<XFile> selectedFiles = [];
CustomFileSystemEntity().map.forEach((key, value) {
if (value) selectedFiles.add(XFile(key.path));
});
try {
if (!Platform.isWindows || Platform.isLinux)
Share.shareXFiles(selectedFiles);
} on PlatformException catch (e) {
debugPrint("${e.message}");
}
}