instance property

HushPlatform get instance

The default instance of HushPlatform to use.

Defaults to MethodChannelHush.

Implementation

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

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

Implementation

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