PurchaseAndroid constructor

const PurchaseAndroid({
  1. bool? autoRenewingAndroid,
  2. String? currentPlanId,
  3. String? dataAndroid,
  4. String? developerPayloadAndroid,
  5. required String id,
  6. List<String>? ids,
  7. bool? isAcknowledgedAndroid,
  8. required bool isAutoRenewing,
  9. bool? isSuspendedAndroid,
  10. String? obfuscatedAccountIdAndroid,
  11. String? obfuscatedProfileIdAndroid,
  12. String? packageNameAndroid,
  13. required IapPlatform platform,
  14. required String productId,
  15. required PurchaseState purchaseState,
  16. String? purchaseToken,
  17. required int quantity,
  18. String? signatureAndroid,
  19. required IapStore store,
  20. required double transactionDate,
  21. String? transactionId,
  22. bool? isAlternativeBilling,
})

Implementation

const PurchaseAndroid({
  this.autoRenewingAndroid,
  this.currentPlanId,
  this.dataAndroid,
  this.developerPayloadAndroid,
  required this.id,
  this.ids,
  this.isAcknowledgedAndroid,
  required this.isAutoRenewing,
  /// Whether the subscription is suspended (Android)
  /// A suspended subscription means the user's payment method failed and they need to fix it.
  /// Users should be directed to the subscription center to resolve the issue.
  /// Do NOT grant entitlements for suspended subscriptions.
  /// Available in Google Play Billing Library 8.1.0+
  this.isSuspendedAndroid,
  this.obfuscatedAccountIdAndroid,
  this.obfuscatedProfileIdAndroid,
  this.packageNameAndroid,
  required this.platform,
  required this.productId,
  required this.purchaseState,
  this.purchaseToken,
  required this.quantity,
  this.signatureAndroid,
  /// Store where purchase was made
  required this.store,
  required this.transactionDate,
  this.transactionId,
  this.isAlternativeBilling,
});