isDevice method

bool isDevice(
  1. Device device,
  2. double cx,
  3. double cy
)

Checks if the given coordinates represent any configured device.

Implementation

bool isDevice(Device device, double cx, double cy) {
  final x = device.aspectRatio;
  final y = device.ratio(cx, cy);
  return x > y;
}