toResizedOffset method

Offset toResizedOffset(
  1. Size size
)

size is the size of the image when displayed

Implementation

Offset toResizedOffset(Size size) =>
    Offset(x.toDouble() * size.width, y.toDouble() * size.height);