width property

double width

The entire width of the line, including the padding

Implementation

double get width {
  if (metrics.lineNumber == 0) {
    return (rawWidth + _firstLinePadding.right).roundToDouble();
  } else if (isLast) {
    return (rawWidth + _lastLinePadding.right).roundToDouble();
  } else {
    return (rawWidth + _innerLinePadding.right).roundToDouble();
  }
}