instance property

TapaySdkPlatform get instance

The default instance of TapaySdkPlatform to use.

Defaults to MethodChannelTapaySdk.

Implementation

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

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

Implementation

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