getBounds method

  1. @override
Rect getBounds()
override

Implementation

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