paint method
Default paint implementation.
RenderBox paints no self-content; it forwards painting to its RenderBox children. Subclasses override to draw their own content.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
// ConstrainedBox doesn't paint anything, just positions the child
if (_child != null) {
context.paintChild(_child!, offset + Offset(x, y));
}
}