paint method
Paints this render object into the given context at offset.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
_cachedStyle ??=
TextStyle(color: _color, backgroundColor: _backgroundColor);
final TextStyle style = _cachedStyle!;
context.buffer.writeStyled(offset.x, offset.y, frame, style);
if (label != null && label!.isNotEmpty) {
context.writeString(offset.x + 2, offset.y, label!, style);
}
}