isPrinterBluetooth method
isPrinterBluetooth(String) takes the name of a discovered printer and checks if it was discovered by the Bluetooth Scan
If true, it was discovered by the Bluetooth Scan and supports BLE connectivity. If false, it was discovered by Wi-Fi and support Wi-Fi connectivity. If null, the printer name passed in is not valid.
Implementation
@override
Future<bool?> isPrinterBluetooth(String printerName) async {
var sendMap = <String, dynamic>{"printerName": printerName};
bool? isPrinterBluetooth =
await methodChannel.invokeMethod<bool?>('isPrinterBluetooth', sendMap);
return isPrinterBluetooth;
}