shape property
override
This node's area, as measured from its text. Empty until it first builds.
Reading it lays the text out if anything has changed, so the size is current for layout, anchoring, and hit testing alike.
Implementation
@override
Shape get shape {
_reflow();
return _shape;
}
override
Sets this node's own shape. Nodes sized by their content refuse one.
Implementation
@override
set shape(Shape value) => throw UnsupportedError('A TextNode is sized by its text.');