instance property
InAppPurchasePlatform
instance
The instance of InAppPurchasePlatform to use.
Must be set before accessing.
Implementation
static InAppPurchasePlatform get instance => _instance;
Platform-specific plugins should set this with their own platform-specific class that extends InAppPurchasePlatform when they register themselves.
Implementation
// TODO(amirh): Extract common platform interface logic.
// https://github.com/flutter/flutter/issues/43368
static set instance(InAppPurchasePlatform instance) {
PlatformInterface.verify(instance, _token);
_instance = instance;
}