paint method
Paints this render object into the given context at offset.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
final EdgeInsets padding = _style.padding;
_ensureStylesCached();
final TextStyle textStyle = _cachedTextStyle!;
final TextStyle bgStyle = _cachedBgStyle!;
for (int y = 0; y < size!.height; y++) {
context.fillBackground(offset.x, offset.y + y, size!.width, bgStyle);
}
final int textY = offset.y + padding.top;
context.writeString(offset.x + padding.left, textY, text, textStyle);
}