AddOrderEvent constructor

AddOrderEvent({
  1. String? orderId,
  2. double? orderAmount,
  3. double? paidAmount,
  4. List<Map<String, dynamic>>? items,
  5. Map<String, dynamic>? customEventProperties,
})

Implementation

AddOrderEvent({
  String? orderId,
  double? orderAmount,
  double? paidAmount,
  List<Map<String, dynamic>>? items,
  Map<String, dynamic>? customEventProperties,
}) : super(
        eventType: "order",
      ) {
  if (orderId != null) setOrderId(orderId);
  if (orderAmount != null) setOrderAmount(orderAmount);
  if (paidAmount != null) setPaidAmount(paidAmount);
  if (items != null) setItems(items);
  if (customEventProperties != null) {
    setCustomEventProperties(customEventProperties);
  }
}