CommerceEvent.withImpression constructor

CommerceEvent.withImpression({
  1. required Impression impression,
})

Initializes an instance of MPCommerceEvent with a product impression.

Implementation

CommerceEvent.withImpression({required Impression impression})
    : promotionActionType = null,
      productActionType = null {
  impressions.add(impression);
}