VerticalLine( this.index, { this.label, this.color, this.yPosition, this.textAlign, }) { if (index < 0) { throw ArgumentError('Invalid index: $index'); } }