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

Commit e7f6216

Browse files
committed
Updated readme to reflect setInstance method
1 parent efc6120 commit e7f6216

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/in_app_purchase/in_app_purchase_platform_interface/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To implement a new platform-specific implementation of `in_app_purchase`, extend
1212
[`InAppPurchasePlatform`][2] with an implementation that performs the
1313
platform-specific behavior, and when you register your plugin, set the default
1414
`InAppPurchasePlatform` by calling
15-
`InAppPurchasePlatform.instance = MyPlatformInAppPurchase()`.
15+
`InAppPurchasePlatform.setInstance(MyPlatformInAppPurchase())`.
1616

1717
# Note on breaking changes
1818

packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/in_app_purchase_platform.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class InAppPurchasePlatform extends PlatformInterface {
2121

2222
static final Object _token = Object();
2323

24-
/// The default instance of [InAppPurchasePlatform] to use.
24+
/// The instance of [InAppPurchasePlatform] to use.
2525
///
2626
/// Defaults to `null`.
2727
static InAppPurchasePlatform? get instance => _instance;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PurchaseParam {
1414

1515
/// The product to create payment for.
1616
///
17-
/// It has to match one of the valid [ProductDetails] objects that you get from [ProductDetailsResponse] after calling [InAppPurchaseConnection.queryProductDetails].
17+
/// It has to match one of the valid [ProductDetails] objects that you get from [ProductDetailsResponse] after calling [InAppPurchasePlatform.queryProductDetails].
1818
final ProductDetails productDetails;
1919

2020
/// An opaque id for the user's account that's unique to your app. (Optional)

0 commit comments

Comments
 (0)