ChartAreaLayer constructor

const ChartAreaLayer({
  1. required List<Point> items,
  2. required Color positiveColor,
  3. required Color negativeColor,
  4. double? smoothness,
})

Creates a new instance of ChartAreaLayer with the specified parameters.

The items parameter is required and represents the list of points defining the area. The positiveColor and negativeColor define the colors for positive and negative areas respectively. The smoothness is an optional value to smooth the line.

Implementation

const ChartAreaLayer({
  required super.items,
  required this.positiveColor,
  required this.negativeColor,
  this.smoothness,
});