Skip to content

Commit

Permalink
chore: Add more legible toString implementation to TextPainterTextEle…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
luanpotter committed Jun 8, 2024
1 parent 983cfab commit e51923f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ class TextPainterTextElement extends InlineTextElement {
void draw(Canvas canvas) {
_textPainter.paint(canvas, Offset(_box.left, _box.top));
}

@override
String toString() {
return 'TextPainterTextElement(text: ${_textPainter.text?.toPlainText()})';
}
}

0 comments on commit e51923f

Please sign in to comment.