instance property

HotspotAccessPlatform get instance

The default instance of HotspotAccessPlatform to use.

Defaults to MethodChannelHotspotAccess.

Implementation

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

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

Implementation

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