getRatioHeight function

double getRatioHeight(
  1. InputImageRotation rotation,
  2. Size size,
  3. Size absoluteImageSize
)

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;
  }
}