ChartLineLayer.solid constructor

const ChartLineLayer.solid({
  1. required List<Point> items,
  2. required Color color,
  3. double lineWidth = 1,
  4. List<double>? dashArray,
  5. double? smoothness,
})

Creates a new instance of ChartLineLayer with one solid color for the complete line.

The items parameter is required and represents the list of points to connect with lines. The color defines the color of the line. The lineWidth specifies the width of the line (default is 1). The dashArray is an optional list of values defining the dash pattern for the line. The smoothness is an optional value to smooth the line.

Implementation

const ChartLineLayer.solid({
  required super.items,
  required Color color,
  this.lineWidth = 1,
  this.dashArray,
  this.smoothness,
})  : positiveColor = color,
      negativeColor = null,
      colors = null;