instance property

BulbPluginPlatform get instance

The default instance of BulbPluginPlatform to use.

Defaults to MethodChannelBulbPlugin.

Implementation

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

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

Implementation

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