instance property

HtechPlatform get instance

The default instance of HtechPlatform to use.

Defaults to MethodChannelHtech.

Implementation

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

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

Implementation

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