CartesianSeries<T, D>  constructor 
      const
      CartesianSeries<T, D> ({ 
    
- ValueKey<
String> ? key, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - String? name,
 - List<
T> ? dataSource, - String? xAxisName,
 - String? yAxisName,
 - ChartValueMapper<
T, Color> ? pointColorMapper, - Color? color,
 - String? legendItemText,
 - ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - LinearGradient? gradient,
 - LinearGradient? borderGradient,
 - List<
Trendline> ? trendlines, - MarkerSettings markerSettings = const MarkerSettings(),
 - SeriesRendererCreatedCallback<
T, D> ? onRendererCreated, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - ChartPointInteractionCallback? onPointTap,
 - ChartPointInteractionCallback? onPointDoubleTap,
 - ChartPointInteractionCallback? onPointLongPress,
 - CartesianShaderCallback? onCreateShader,
 - bool initialIsVisible = true,
 - bool enableTooltip = true,
 - bool enableTrackball = true,
 - EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
 - DataLabelSettings dataLabelSettings = const DataLabelSettings(),
 - double animationDuration = 1500,
 - List<
double> ? dashArray, - double borderWidth = 2.0,
 - SelectionBehavior? selectionBehavior,
 - List<
int> ? initialSelectedDataIndexes, - bool isVisibleInLegend = true,
 - LegendIconType legendIconType = LegendIconType.seriesType,
 - double opacity = 1.0,
 - double animationDelay = 0,
 - SortingOrder sortingOrder = SortingOrder.none,
 
Creating an argument constructor of CartesianSeries class.
Implementation
const CartesianSeries({
  super.key,
  super.xValueMapper,
  super.dataLabelMapper,
  super.name,
  super.dataSource,
  this.xAxisName,
  this.yAxisName,
  super.pointColorMapper,
  super.color,
  super.legendItemText,
  super.sortFieldValueMapper,
  this.gradient,
  this.borderGradient,
  this.trendlines,
  super.markerSettings,
  this.onRendererCreated,
  this.onCreateRenderer,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  this.onCreateShader,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.animationDuration,
  this.dashArray,
  super.borderWidth,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
  super.isVisibleInLegend,
  super.legendIconType,
  super.opacity,
  super.animationDelay,
  super.sortingOrder,
});