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