toResizedOffset method
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);
adjust the offset to the size of the displayed image
Offset toResizedOffset({
double heightRatio = 1,
double widthRatio = 1,
}) =>
Offset(x.toDouble() * widthRatio, y.toDouble() * heightRatio);