toAddressBLE static method

Future<BluetoothConnection> toAddressBLE(
  1. String? address
)

Implementation

static Future<BluetoothConnection> toAddressBLE(String? address) async {
  // Sorry for pseudo-factory, but `factory` keyword disallows `Future`.
  return BluetoothConnection._consumeConnectionID(await FlutterBluetoothSerial
      ._methodChannel
      .invokeMethod('connect', {"address": address, "isLE": true}));

}