getWidth method

double getWidth()

Returns the width of the laid-out paragraph.

Implementation

double getWidth() {
  assert(paragraph.longestLine > 0, "Paragraph width is negative ${paragraph.longestLine}");
  return paragraph.longestLine;
}