paint method

  1. @override
void paint(
  1. PaintingContext context,
  2. Offset offset
)
override

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) {
  // In lazy rendering, only paint intersection observer for triggering intersection change callback.
  if (_isInLazyRendering) {
    paintIntersectionObserver(context, offset, paintNothing);
  } else if (shouldPaint) {
    paintBoxModel(context, offset);
  }
}