instance property

The default instance of DemoPluginPlatform to use.

Defaults to MethodChannelDemoPlugin.

Implementation

static DemoPluginPlatform get instance => _instance;
void instance=(DemoPluginPlatform instance)

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

Implementation

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