paint method
Paints this render object into the given context at offset.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
final displayText = _displayText;
final displayStyle = _resolveDisplayStyle();
if (_hasFocus) {
_drawBorder(context, offset, size!);
}
final scrollOffset = _computeScrollOffset(displayText.length);
_paintText(context, offset, displayText, displayStyle, scrollOffset);
if (_hasFocus) {
_paintCursor(context, offset, displayText, scrollOffset);
}
}