instance property

SingBoxPlatform get instance

The default instance of SingBoxPlatform to use.

Defaults to MethodChannelSingBox.

Implementation

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

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

Implementation

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