Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 67e696a

Browse files
committed
Added extra documentation on default return value.
Added extra documentation explaining that the default return value for the `SkuDetailsWrapper.introductoryPriceAmountMicros` field will be 0 in case the product is not a subscription or doesn't have an introductory price associated with it.
1 parent b8e226b commit 67e696a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ class SkuDetailsWrapper {
7171
@JsonKey(defaultValue: '')
7272
final String introductoryPrice;
7373

74-
/// [introductoryPrice] in micro-units 990000
74+
/// [introductoryPrice] in micro-units 990000.
75+
///
76+
/// Returns 0 if the SKU is not a subscription or doesn't have an introductory
77+
/// period.
7578
@JsonKey(name: 'introductoryPriceAmountMicros', defaultValue: 0)
7679
final int introductoryPriceAmountMicros;
7780

0 commit comments

Comments
 (0)