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