getPixelColor function
Implementation
Color getPixelColor(img.Image image, Offset offset) => (offset.dx >= 0 &&
offset.dy >= 0 &&
offset.dx < image.width &&
offset.dy < image.height)
? pixel2Color(image.getPixel(offset.dx.toInt(), offset.dy.toInt()))
: const Color(0x00000000);