PurchaseObservation constructor

const PurchaseObservation({
  1. required String productId,
  2. required String source,
  3. int? observedAt,
  4. String? transactionRef,
  5. String state = 'unknown',
  6. String verification = 'unknown',
  7. bool? entitled,
  8. int? deliveryCount,
  9. bool? finished,
  10. bool? acknowledged,
  11. bool? consumed,
  12. int? expiresAt,
  13. int? gracePeriodExpiresAt,
  14. String environment = 'unknown',
  15. String productType = 'unknown',
})

Implementation

const PurchaseObservation(
    {required this.productId,
    required this.source,
    this.observedAt,
    this.transactionRef,
    this.state = 'unknown',
    this.verification = 'unknown',
    this.entitled,
    this.deliveryCount,
    this.finished,
    this.acknowledged,
    this.consumed,
    this.expiresAt,
    this.gracePeriodExpiresAt,
    this.environment = 'unknown',
    this.productType = 'unknown'});