scanDevices method
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;
}