connect static method

Future<String?> connect(
  1. String mac
)

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;
}