paint method
This class mixin RenderProxyBoxMixin, which has its' own paint method, override it to layout box model paint.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
// Should not paint other style such as box decoration when renderObject
// is in lazy loading and not rendered yet.
if (isInLazyRendering) {
paintIntersectionObserver(context, offset, performPaint);
return;
}
if (shouldPaint) {
paintBoxModel(context, offset);
}
}