instance property

HpDataPlatform get instance

The default instance of HpDataPlatform to use.

Defaults to MethodChannelHpData.

Implementation

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

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

Implementation

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