instance property

BlueAsyncPlatform get instance

The default instance of BlueAsyncPlatform to use.

Defaults to MethodChannelBlueAsync.

Implementation

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

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

Implementation

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