OrderEvent.purchase constructor

OrderEvent.purchase(
  1. Order order
)

Implementation

factory OrderEvent.purchase(Order order) {
  return OrderEvent._(OrderEventName.purchase.name, order);
}