instance property

WinhookerPlatform get instance

The default instance of WinhookerPlatform to use.

Defaults to MethodChannelWinhooker.

Implementation

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

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

Implementation

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