render method
Renders the widget onto the provided buffer within the specified area.
Implementation
@override
void render(Buffer buffer, Rect area) {
if (area.width <= 0 || area.height <= 0) return;
if (!wrap) {
final lines = [data];
_renderLines(buffer, area, lines);
} else {
final lines = _wrapText(data, area.width);
_renderLines(buffer, area, lines);
}
}