instance property

MyWinPluginPlatform get instance

The default instance of MyWinPluginPlatform to use.

Defaults to MethodChannelMyWinPlugin.

Implementation

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

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

Implementation

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