getDevices method
Implementation
List<DeviceModel> getDevices(Brand brand) {
return devices.where((element) => element.brand == brand).toList();
}
List<DeviceModel> getDevices(Brand brand) {
return devices.where((element) => element.brand == brand).toList();
}