byDisplaySize static method
Filter devices by display size
Implementation
static List<Device> byDisplaySize(DisplaySize size) {
return [
iphone16ProMax,
iphone16Pro,
iphone14Plus,
iphone14,
iphone11,
iphone8Plus,
iphoneSE3,
phone,
ipadProM4,
ipadPro12_9,
ipadPro11,
// Add any other device constants here
].where((device) => device.displaySize == size).toList();
}