size property Null safety

Size size

The amount of space required to paint this text.

Valid only after layout has been called.

Implementation

Size get size {
  assert(_debugAssertTextLayoutIsValid);
  return Size(width, height);
}