getWidth method
Returns the width of the laid-out paragraph.
Implementation
double getWidth() {
assert(paragraph.longestLine > 0, "Paragraph width is negative ${paragraph.longestLine}");
return paragraph.longestLine;
}
Returns the width of the laid-out paragraph.
double getWidth() {
assert(paragraph.longestLine > 0, "Paragraph width is negative ${paragraph.longestLine}");
return paragraph.longestLine;
}