filter by space

This commit is contained in:
hannathkadher
2024-10-22 11:31:49 +04:00
parent 0b0fee2e26
commit 64b84fed82

View File

@ -286,10 +286,11 @@ class DeviceManagementBloc
false);
final matchesUnit = event.unitName == null ||
event.unitName!.isEmpty ||
(device.unit?.name
?.toLowerCase()
.contains(event.unitName!.toLowerCase()) ??
false);
(device.spaces != null &&
device.spaces!.isNotEmpty &&
device.spaces![0].spaceName
!.toLowerCase()
.contains(event.unitName!.toLowerCase()));
final matchesProductName = event.productName == null ||
event.productName!.isEmpty ||
(device.name