Revenue constructor

Revenue(
  1. Decimal price,
  2. String currency, {
  3. int? quantity,
  4. String? productId,
  5. String? payload,
  6. Receipt? receipt,
  7. String? transactionId,
})

Creates an object with information about income from in-app purchases. The parameters price, currency are required.

Implementation

Revenue(this.price, this.currency,
    {this.quantity,
    this.productId,
    this.payload,
    this.receipt,
    this.transactionId});