getBounds method

  1. @override
Rect getBounds()
override

Implementation

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