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