shape property

  1. @override
Shape get shape
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;
}
  1. @override
set shape (Shape value)
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.');