cutFaceFromImage function Null safety

dynamic cutFaceFromImage(
  1. dynamic img,
  2. dynamic rect
)

Implementation

imglib.Image cutFaceFromImage(imglib.Image img, Rectangle rect) {
  return imglib.copyCrop(img, x: rect.x, y: rect.y, width: rect.width, height: rect.height);
}