connectToAddress method

  1. @Deprecated('Use `BluetoothConnection.toAddress(address)` instead')
Future<void> connectToAddress(
  1. String? address, {
  2. ConnectionType type = ConnectionType.AUTO,
})

Implementation

@Deprecated('Use `BluetoothConnection.toAddress(address)` instead')
Future<void> connectToAddress(String? address, {ConnectionType type = ConnectionType.AUTO}) => Future(() async {
      _defaultConnection = await BluetoothConnection.toAddress(address, type: type);
    });