callEvent method
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();
}
}