toCenter method

Offset toCenter(
  1. Size imageSize
)

Implementation

Offset toCenter(Size imageSize) {
  return Offset(
      this.dx - (imageSize.width / 2), this.dy - (imageSize.height / 2));
}