localBounds property

  1. @override
Rect get localBounds
override

Axis-aligned bounds in local coordinates.

Implementation

@override
Rect get localBounds {
  if (points.isEmpty) return Rect.zero;
  final bounds = aabbFromPoints(points);
  return bounds.inflate(thickness / 2);
}