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({
  double left = 0,
  double baseline = 0,
  double width = 0,
  double? ascent,
  double? descent,
  double? height,
})  : _left = left,
      _baseline = baseline,
      _width = width,
      _ascent = ascent ?? (height == null ? 0 : height - (descent ?? 0)),
      _descent =
          descent ?? (height == null ? 0 : height - (ascent ?? height)) {
  _updateSize();
}