LineMetrics constructor

LineMetrics(
  1. {bool hardBreak,
  2. double ascent,
  3. double descent,
  4. double unscaledAscent,
  5. double height,
  6. double width,
  7. double left,
  8. double baseline,
  9. int lineNumber}
)

Creates a LineMetrics object with only the specified values.

Omitted values will remain null. Paragraph.computeLineMetrics produces fully defined LineMetrics with no null values.

Implementation

LineMetrics({
  this.hardBreak,
  this.ascent,
  this.descent,
  this.unscaledAscent,
  this.height,
  this.width,
  this.left,
  this.baseline,
  this.lineNumber,
});