toResizedOffset method

Offset toResizedOffset({
  1. double heightRatio = 1,
  2. double widthRatio = 1,
})

adjust the offset to the size of the displayed image

Implementation

Offset toResizedOffset({
  double heightRatio = 1,
  double widthRatio = 1,
}) =>
    Offset(x.toDouble() * widthRatio, y.toDouble() * heightRatio);