instance property

BtServicePlatform get instance

The default instance of BtServicePlatform to use.

Defaults to MethodChannelBtService.

Implementation

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

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

Implementation

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