logPurchase method
Logs a purchase event with Facebook explicitly, in the specified amount and with the specified currency.
Implementation
Future<void> logPurchase({
required double amount,
required String currency,
Map<String, dynamic>? body,
}) {
final data = <String, dynamic>{
'amount': amount,
'currency': currency,
'parameters': body ?? {},
};
return _channel!.invokeMethod<void>('logPurchase', data);
}