discontinuedPackage androssy_utils has been discontinued.

isDevice method

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

Implementation

bool isDevice(Device device, double cx, double cy) {
  final x = device.aspectRatio;
  final y = device.ratio(cx, cy);
  // print('\n${device.name}\t => X : ${x.toStringAsFixed(2)}');
  // print('${device.name}\t => Y : ${y.toStringAsFixed(2)}');
  return x > y;
}