enableDisableAutoDownload method
Implementation
Future<void> enableDisableAutoDownload(BuildContext context) async {
AppPermission.getStoragePermission(context: context).then((value) {
if (value) {
// if (await askStoragePermission(context)) {
var enable = !_autoDownloadEnabled
.value; //SessionManagement.isAutoDownloadEnable();
Mirrorfly.setMediaAutoDownload(enable: enable);
_autoDownloadEnabled(enable);
}
});
}