unPair static method

Future<void> unPair(
  1. String address
)

unPair will try to Un-pair

Implementation

static Future<void> unPair(String address) async {
  try {
    var result = await _channel.invokeMethod("unPair", args: {
      "device": WinHelper.getDeviceFromAddress(address),
    });
    if (result == null || result != "Unpaired") {
      throw result;
    }
  } catch (e) {
    rethrow;
  }
}