localBounds property
override
Axis-aligned bounds in local coordinates.
Implementation
@override
Rect get localBounds {
if (points.isEmpty) return Rect.zero;
final bounds = aabbFromPoints(points);
if (!_isFiniteRect(bounds)) return Rect.zero;
final baseThickness = clampNonNegativeFinite(thickness);
return bounds.inflate(baseThickness / 2);
}