logPurchaseWithProperties method
- @Deprecated('Use logPurchase(productId, currencyCode, price, quantity, properties: properties) instead.')
Logs a purchase event to Braze.
Implementation
@Deprecated(
'Use logPurchase(productId, currencyCode, price, quantity, properties: properties) instead.')
void logPurchaseWithProperties(String productId, String currencyCode,
double price, int quantity, Map<String, dynamic> properties) {
final Map<String, dynamic> params = <String, dynamic>{
"productId": productId,
"currencyCode": currencyCode,
"price": price,
"quantity": quantity,
"properties": properties
};
_channel.invokeMethod('logPurchase', params);
}