instance property

MyplugintestPlatform get instance

The default instance of MyplugintestPlatform to use.

Defaults to MethodChannelMyplugintest.

Implementation

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

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

Implementation

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