instance property

HumanPluginPlatform get instance

The default instance of HumanPluginPlatform to use.

Defaults to MethodChannelHumanPlugin.

Implementation

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

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

Implementation

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