onEventOccurred method
Triggered when an even occurs in the plugin lifecycle. Return true to save the shared preferences, false otherwise.
Implementation
@override
bool onEventOccurred(RateMyAppEventType eventType) {
if (eventType == RateMyAppEventType.rateButtonPressed || eventType == RateMyAppEventType.noButtonPressed) {
doNotOpenAgain = true;
return true;
}
return false;
}