instance property

DesktopProxyPlatform get instance

The default instance of DesktopProxyPlatform to use.

Defaults to MethodChannelDesktopProxy.

Implementation

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

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

Implementation

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