instance property
FlutterBluetoothPluginPlatform
get
instance
当前使用的平台实现实例。
默认值为 MethodChannelFlutterBluetoothPlugin;Web 或测试实现会在注册时替换它。
Implementation
static FlutterBluetoothPluginPlatform get instance => _instance;
set
instance
(FlutterBluetoothPluginPlatform instance)
Implementation
static set instance(FlutterBluetoothPluginPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}