enableArchive method

void enableArchive()

Implementation

void enableArchive() async {
  if (await AppUtils.isNetConnected()) {
    Mirrorfly.enableDisableArchivedSettings(
        enable: !archiveEnabled,
        flyCallBack: (FlyResponse response) {
          if (response.isSuccess) {
            _archiveEnabled(!archiveEnabled);
          }
        });
  } else {
    toToast(AppConstants.noInternetConnection);
  }
}