getDevices method

List<DeviceModel> getDevices(
  1. Brand brand
)

Implementation

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