y property

double y

The y position of the line

Implementation

double get y {
  final y = metrics.baseline - metrics.ascent;
  if (isFirst) {
    return y;
  } else if (isLast) {
    return y + (_lastLinePadding.top / 2);
  } else {
    return y - _innerLinePadding.top;
  }
}