connectToBluetoothPrinter method
connectToBluetoothPrinter(String) attempts to connect to a printer via Bluetooth Low Energy whose name is passed into the method. This is asynchronous and returns a Boolean value afterwards with the result of the connection (i.e. success or failure).
Implementation
Future<bool?> connectToBluetoothPrinter(String? printer) async {
return await BradyFlutterPluginPlatform.instance
.connectToBluetoothPrinter(printer);
}