Skip to content

Commit 04cf809

Browse files
authored
[in_app_purchase] Make PurchaseDetails.status mandatory (flutter#3831)
1 parent 475b455 commit 04cf809

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/types/purchase_details.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class PurchaseDetails {
1414
required this.productID,
1515
required this.verificationData,
1616
required this.transactionDate,
17+
required this.status,
1718
});
1819

1920
/// A unique identifier of the purchase.
@@ -37,7 +38,7 @@ class PurchaseDetails {
3738
final String? transactionDate;
3839

3940
/// The status that this [PurchaseDetails] is currently on.
40-
PurchaseStatus? status;
41+
PurchaseStatus status;
4142

4243
/// The error details when the [status] is [PurchaseStatus.error].
4344
///

0 commit comments

Comments
 (0)