layoutText method

void layoutText()

Implementation

void layoutText() {
  final BoxConstraints constraints = this.constraints;
  _layoutTextWithConstraints(constraints);
  _computeLineMetrics();

  // @FIXME: Layout twice will hurt performance, ideally this logic should be done
  // in flutter text engine.
  // Layout each line of the paragraph individually to
  // place each line according to W3C line-height rule.
  if (lineHeight != null) {
    _relayoutMultiLineText();
  }
}