instance property

HarmonyPluginPlatform get instance

The default instance of HarmonyPluginPlatform to use.

Defaults to MethodChannelHarmonyPlugin.

Implementation

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

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

Implementation

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