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