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