connect static method
Connect to device using mac
.
Implementation
static Future<String?> connect(String mac) async {
String? result = "false";
try {
result = await _channel.invokeMethod('connectPrinter', mac);
} on PlatformException catch (e) {
print("Failed to connect: '${e.message}'.");
}
return result;
}