Offset centerOffset(Offset other) { final double centerX = other.dx / 2.0; final double centerY = other.dy / 2.0; return Offset(centerX, centerY); }