getBounds method

  1. @override
Rect getBounds()
override

Implementation

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