callEvent method

Future<void> callEvent(
  1. RateMyAppEventType eventType
)

Calls the specified event.

Implementation

Future<void> callEvent(RateMyAppEventType eventType) async {
  bool saveSharedPreferences = false;
  for (Condition condition in conditions) {
    saveSharedPreferences =
        condition.onEventOccurred(eventType) || saveSharedPreferences;
  }
  if (saveSharedPreferences) {
    await save();
  }
}