logAddPaymentInfo method

Future<void> logAddPaymentInfo({
  1. String? coupon,
  2. String? currency,
  3. String? paymentType,
  4. double? value,
  5. List<AnalyticsEventItem>? items,
  6. Map<String, Object?>? parameters,
  7. AnalyticsCallOptions? callOptions,
})

Logs the standard add_payment_info event.

This event signifies that a user has submitted their payment information to your app.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#ADD_PAYMENT_INFO

Implementation

Future<void> logAddPaymentInfo({
  String? coupon,
  String? currency,
  String? paymentType,
  double? value,
  List<AnalyticsEventItem>? items,
  Map<String, Object?>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);
  _assertItemsParameterTypesAreCorrect(items);

  return _delegate.logEvent(
    name: 'add_payment_info',
    parameters: filterOutNulls({
      _COUPON: coupon,
      _CURRENCY: currency,
      _PAYMENT_TYPE: paymentType,
      _VALUE: value,
      _ITEMS: _marshalItems(items),
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}