instance property

BleControllerPlatform get instance

The default instance of BleControllerPlatform to use.

Defaults to MethodChannelBleController.

Implementation

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

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

Implementation

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