discoverDevices property

  1. @override
Stream<BluetoothDevice> discoverDevices
override

Implementation

@override
Stream<BluetoothDevice> get discoverDevices {
  final stream = foundDeviceEvent.receiveBroadcastStream().map(
    (event) {
      final data =
          HelperFunctions.convertToMap(event as Map<Object?, Object?>);
      final device = BluetoothDevice.fromMap(data);
      return device;
    },
  );
  return stream;
}