scanDevices method

  1. @override
Stream<List<BluetoothDevice>> scanDevices({
  1. String? serviceUUID,
  2. int timeout = 10000,
})
override

Implementation

@override
Stream<List<BluetoothDevice>> scanDevices({String? serviceUUID, int timeout = 10000}) {
  methodChannel.invokeMethod(
      'scanDevices', {'timeout': timeout, if (serviceUUID != null) 'serviceUUID': serviceUUID});

  _scanningStreamController = StreamController<List<BluetoothDevice>>();
  return _scanningStreamController.stream;
}