LineMetrics constructor

LineMetrics({
  1. double left = 0,
  2. double baseline = 0,
  3. double width = 0,
  4. double? ascent,
  5. double? descent,
  6. double? height,
})

Implementation

LineMetrics({
  this._left = 0,
  this._baseline = 0,
  this._width = 0,
  double? ascent,
  double? descent,
  double? height,
}) : _ascent = ascent ?? (height == null ? 0 : height - (descent ?? 0)),
     _descent =
         descent ?? (height == null ? 0 : height - (ascent ?? height)) {
  _updateSize();
}