paintElement method
Paints the render object belonging to element into the output buffer.
Implementation
void paintElement(Element element) {
final context = PaintingContext(outputBuffer);
element.renderObject?.paint(context, Offset.zero);
outputBuffer.flush();
}