ChartLineLayer constructor

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

Creates a new instance of ChartLineLayer with the specified parameters.

The items parameter is required and represents the list of points to connect with lines. The positiveColor and negativeColor define the colors for positive and negative values respectively. 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.

Implementation

const ChartLineLayer({
  required super.items,
  required this.positiveColor,
  required this.negativeColor,
  this.lineWidth = 1,
  this.dashArray,
});