logPurchaseWithContentId method
dynamic
logPurchaseWithContentId()
Implementation
logPurchaseWithContentId(
String contentId, String? contentType, double revenue, String currency) {
_appsflyersdk?.logEvent(
contentType != null && contentType == "vip"
? "purchase_subscription"
: "purchase_normal",
{
"af_content_id": contentId,
"af_content_type": contentType ?? "",
"af_revenue": revenue,
"af_currency": currency,
});
}