updateGlobalEnable static method
Update global enable state manually (persists to preferences)
Implementation
static void updateGlobalEnable(bool enable) {
if (_globalEnable.value == enable) return;
debugPrint('Update global ads enable to $enable');
_globalEnable.value = enable;
_cachedConfig = _cachedConfig.copyWith(enable: enable);
if (PreferencesManager.isInitialized()) {
PreferencesManager.setBoolean(globalEnableKey, enable);
}
}