draw method
Renders the element on the canvas
, at coordinates determined during the
layout.
In order to render the element at a different location, consider either calling the translate method, or applying a translation transform to the canvas itself.
Implementation
@override
void draw(Canvas canvas) {
_textPainter.paint(canvas, Offset(_box.left, _box.top));
}