instance property

The default instance of ByExamplePluginPlatform to use.

Defaults to MethodChannelByExamplePlugin.

Implementation

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

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

Implementation

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