instance property

PluginTwoPlatform get instance

The default instance of PluginTwoPlatform to use.

Defaults to MethodChannelPluginTwo.

Implementation

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

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

Implementation

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