instance property

PluginCodelabPlatform get instance

The default instance of PluginCodelabPlatform to use.

Defaults to MethodChannelPluginCodelab.

Implementation

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

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

Implementation

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