instance property

TuyaPluginPlatform get instance

The default instance of TuyaPluginPlatform to use.

Defaults to MethodChannelTuyaPlugin.

Implementation

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

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

Implementation

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