fullWidth property

double fullWidth

The entire width of the line, including the padding and its x

Implementation

double get fullWidth {
  if (_overridenWidth != null) return _overridenWidth!;
  final result = x + width;

  if (!isEmpty) {
    // The padding is subtracted on [x]. Add it back in here
    if (isFirst) {
      return (result + _firstLinePadding.left).roundToDouble();
    } else if (isLast) {
      return (result + _lastLinePadding.left).roundToDouble();
    } else {
      return (result + _innerLinePadding.left).roundToDouble();
    }
  }
  return (x + rawWidth).roundToDouble();
}