deviceListStream property
Stream of available devices
Implementation
@override
Stream<List<BluetoothDeviceModel>> get deviceListStream {
_deviceListStream ??= _deviceListChannel
.receiveBroadcastStream()
.map((event) => (event['devices'] as List)
.map((device) => BluetoothDeviceModel.fromMap(Map<String, dynamic>.from(device)))
.toList());
return _deviceListStream!;
}