instance property
BlePeripheralPluginPlatform
get
instance
The default instance of BlePeripheralPluginPlatform to use.
Defaults to MethodChannelBlePeripheralPlugin.
Implementation
static BlePeripheralPluginPlatform get instance => _instance;
set
instance
(BlePeripheralPluginPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends BlePeripheralPluginPlatform when they register themselves.
Implementation
static set instance(BlePeripheralPluginPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}