connect method
连接蓝牙设备
注意连接和断开必须成对出现
deviceId 设备ID
isUnlock true 的时候初始化蓝牙设备成功之后立刻执行一次开启设备
call 回调函数
Implementation
@override
Future<int?> connect(String deviceId, bool isUnlock) {
return _channel.invokeMethod<int>(
"connect", {"deviceId": deviceId, "isUnlock": isUnlock});
}