debugPaintSize method
- PaintingContext context,
- Offset offset
override
In debug mode, paints a border around this render box.
Called for every RenderBox when debugPaintSizeEnabled is true.
Implementation
@override
void debugPaintSize(PaintingContext context, Offset offset) {
super.debugPaintSize(context, offset);
assert(() {
final Rect outerRect = offset & size;
debugPaintPadding(context.canvas, outerRect, child != null ? _resolvedPaddingCache!.deflateRect(outerRect) : null);
return true;
}());
}