saveToPreferences method
Saves the condition values to the specified shared preferences.
Implementation
@override
Future<void> saveToPreferences(SharedPreferences preferences, String preferencesPrefix) {
return preferences.setBool('${preferencesPrefix}doNotOpenAgain', doNotOpenAgain);
}