logSetCheckoutOption method

Future<void> logSetCheckoutOption({
  1. required int checkoutStep,
  2. required String checkoutOption,
})

Logs the standard set_checkout_option event. This event has been deprecated and is unsupported in updated Enhanced Ecommerce reports. See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#SET_CHECKOUT_OPTION

Implementation

Future<void> logSetCheckoutOption({
  required int checkoutStep,
  required String checkoutOption,
}) {
  return logEvent(
    name: 'set_checkout_option',
    parameters: filterOutNulls(<String, Object?>{
      _CHECKOUT_STEP: checkoutStep,
      _CHECKOUT_OPTION: checkoutOption,
    }),
  );
}