instance property

HydokPlatform get instance

The default instance of HydokPlatform to use.

Defaults to MethodChannelHydok.

Implementation

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

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

Implementation

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