VerticalLine constructor

VerticalLine(
  1. int index, {
  2. String? label,
  3. String? color,
  4. double? yPosition,
  5. String? textAlign,
})

Implementation

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