- protected
In debug mode, paints a border around this render box.
Called for every RenderBox when debugPaintSizeEnabled is true.
Source
@protected
void debugPaintSize(PaintingContext context, Offset offset) {
assert(() {
Paint paint = new Paint()
..style = PaintingStyle.stroke
..strokeWidth = 1.0
..color = debugPaintSizeColor;
context.canvas.drawRect((offset & size).deflate(0.5), paint);
return true;
});
}