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]) {
  return device.type == this.device(cx, cy).type;
}