void renderTextSpan(TextSpan textSpan, double x, double y, Canvas? other) { textPainter.text = textSpan; textPainter.layout(); textPainter.paint(other ?? canvas, Offset(x, y)); }