ChartAreaLayer constructor

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

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.

Implementation

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