instance property

XnetworkPlatform get instance

The default instance of XnetworkPlatform to use.

Defaults to MethodChannelXnetwork.

Implementation

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

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

Implementation

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