translateY method
Implementation
double translateY(double y, InputImageRotation rotation, Size size,
Size absoluteImageSize) {
switch (rotation) {
case InputImageRotation.rotation90deg:
case InputImageRotation.rotation270deg:
return y *
size.height /
(Platform.isIOS
? absoluteImageSize.height
: absoluteImageSize.width);
default:
return y * size.height / absoluteImageSize.height;
}
}