instance property

BillingFeaturePlatform get instance

The default instance of BillingFeaturePlatform to use.

Defaults to MethodChannelBillingFeature.

Implementation

static BillingFeaturePlatform get instance => _instance;
set instance (BillingFeaturePlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends BillingFeaturePlatform when they register themselves.

Implementation

static set instance(BillingFeaturePlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}