paint method
Implementation
@override
void paint(PaintingContext context, Offset offset) {
final displayText =
text.isEmpty && placeholder != null ? placeholder! : text;
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);
}
}