@override Rect getBounds() { if (yPosition == null || centerX == null) return Rect.zero; return Rect.fromLTWH( centerX!, yPosition! - strokeWidth / 2, double.infinity, strokeWidth); }