You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also tried with the underlying value == 1
final existingIndex = results.indexWhere((element) =>
((element.device.address == r.device.address) &&
(element.device.type.underlyingValue == 1)));
Filtering not working on both cases.
In Android, devices are filtered by the device class, what is the equivalent of Android in Flutter?
Android : device.bluetoothClass.deviceClass.and(0x00000FFF)) == 280
Environment
The text was updated successfully, but these errors were encountered:
Problem summary
Hi, When I try to filter the Bluetooth device based on the device type = classic, all the devices are showing up. Code is given below
final existingIndex = results.indexWhere((element) =>
((element.device.address == r.device.address) &&
(element.device.type.stringValue == "classic")));
also tried with the underlying value == 1
final existingIndex = results.indexWhere((element) =>
((element.device.address == r.device.address) &&
(element.device.type.underlyingValue == 1)));
Filtering not working on both cases.
In Android, devices are filtered by the device class, what is the equivalent of Android in Flutter?
Android : device.bluetoothClass.deviceClass.and(0x00000FFF)) == 280
Environment
The text was updated successfully, but these errors were encountered: