connect method
Implementation
Future<void> connect(BluetoothInfo bluetoothInfo) async {
connected = await PrintBluetoothThermal.connectionStatus;
if (connected == true) {
disconnect();
}
connected = await PrintBluetoothThermal.connect(
macPrinterAddress: bluetoothInfo.macAdress);
if (connected == true) {
selectedBluetoothInfo = bluetoothInfo;
saveToLocalStorage(bluetoothInfo);
}
}