instance property

TonPlatform get instance

The default instance of TonPlatform to use.

Defaults to MethodChannelTon.

Implementation

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

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

Implementation

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