updateBounds method

  1. @internal
void updateBounds()

Implementation

@internal
void updateBounds() {
  _textElement = _textRenderer.format(_text);
  final measurements = _textElement.metrics;
  _textElement.translate(0, measurements.ascent);
  size.setValues(measurements.width, measurements.height);
}