setEarnedCurrencyAlertHandler method Null safety

void setEarnedCurrencyAlertHandler(
  1. TJEarnedCurrencyAlertHandler handler
)

set Earned currency Alert handler which returns String currencyName, int amount, String error

Implementation

void setEarnedCurrencyAlertHandler(TJEarnedCurrencyAlertHandler handler) {
  _earnedCurrencyAlertHandler = handler;
}