instance property

BlueBreezePlatform get instance

The active implementation every BBManager/BBDevice/BBCharacteristic call delegates to. Defaults to MethodChannelBlueBreeze; set this to a different implementation (e.g. a mock) before exercising the public API in tests.

Implementation

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

Implementation

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