instance property

AutoProxyPlatform get instance

The default instance of AutoProxyPlatform to use.

Defaults to MethodChannelAutoProxy.

Implementation

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

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

Implementation

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