instance property

I2pPlatform get instance

The default instance of I2pPlatform to use.

Defaults to MethodChannelI2p.

Implementation

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

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

Implementation

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