instance property

TotalPaySdkPlatform get instance

The default instance of TotalPaySdkPlatform to use.

Defaults to MethodChannelTotalPaySdk.

Implementation

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

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

Implementation

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