localBounds property
Axis-aligned bounds in local coordinates.
Implementation
@override
Rect get localBounds {
final bounds = _pathBounds();
if (bounds == null) return Rect.zero;
var rect = bounds;
if (strokeColor != null && strokeWidth > 0) {
rect = rect.inflate(strokeWidth / 2);
}
return rect;
}