save method

Future<void> save()

Saves the plugin current data to the shared preferences.

Implementation

Future<void> save() async {
  SharedPreferences preferences = await SharedPreferences.getInstance();
  for (Condition condition in conditions) {
    await condition.saveToPreferences(preferences, preferencesPrefix);
  }

  await callEvent(RateMyAppEventType.saved);
}