ExtraLinesData constructor

const ExtraLinesData({
  1. List<HorizontalLine> horizontalLines = const [],
  2. List<VerticalLine> verticalLines = const [],
  3. bool extraLinesOnTop = true,
})

LineChart draws some straight horizontal or vertical lines, you should set LineChartData.extraLinesData. Draws horizontal lines using horizontalLines, and vertical lines using verticalLines.

If extraLinesOnTop sets true, it draws the line above the main bar lines, otherwise it draws them below the main bar lines.

Implementation

const ExtraLinesData({
  this.horizontalLines = const [],
  this.verticalLines = const [],
  this.extraLinesOnTop = true,
});