instance property

TestPluginPlatform get instance

The default instance of TestPluginPlatform to use.

Defaults to MethodChannelTestPlugin.

Implementation

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

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

Implementation

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