instance property

BtcPurchasePlatform get instance

The default instance of BtcPurchasePlatform to use.

Defaults to MethodChannelBtcPurchase.

Implementation

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

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

Implementation

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