connect method

Future<void> connect(
  1. String deviceId
)

connect to a device by ID.

Implementation

Future<void> connect(String deviceId) async {
  try {
    await _channel.invokeMethod('connect', {'deviceId': deviceId});
  } on PlatformException catch (e) {
    throw Exception('Failed to connect: ${e.message}');
  }
}