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) {
  if (enableWebFProfileTracking) {
    WebFProfiler.instance.startTrackPaint(this);
  }

  paintBoxModel(context, offset);

  if (enableWebFProfileTracking) {
    WebFProfiler.instance.finishTrackPaint(this);
  }
}