instance property

BleSdkPlatform get instance

The default instance of BleSdkPlatform to use.

Defaults to MethodChannelBleSdk.

Implementation

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

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

Implementation

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