AreaSeries<T, D> constructor

AreaSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. required List<T> dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. required ChartValueMapper<T, num>? yValueMapper,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. SortingOrder? sortingOrder,
  10. String? xAxisName,
  11. String? yAxisName,
  12. String? name,
  13. Color? color,
  14. MarkerSettings? markerSettings,
  15. EmptyPointSettings? emptyPointSettings,
  16. DataLabelSettings? dataLabelSettings,
  17. List<Trendline>? trendlines,
  18. bool? isVisible,
  19. bool? enableTooltip,
  20. List<double>? dashArray,
  21. double? animationDuration,
  22. Color? borderColor,
  23. double? borderWidth,
  24. LinearGradient? gradient,
  25. LinearGradient? borderGradient,
  26. SelectionBehavior? selectionBehavior,
  27. bool? isVisibleInLegend,
  28. LegendIconType? legendIconType,
  29. String? legendItemText,
  30. double? opacity,
  31. double? animationDelay,
  32. BorderDrawMode borderDrawMode = BorderDrawMode.top,
  33. SeriesRendererCreatedCallback? onRendererCreated,
  34. ChartPointInteractionCallback? onPointTap,
  35. ChartPointInteractionCallback? onPointDoubleTap,
  36. ChartPointInteractionCallback? onPointLongPress,
  37. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of AreaSeries class.

Implementation

AreaSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    required List<T> dataSource,
    required ChartValueMapper<T, D>? xValueMapper,
    required ChartValueMapper<T, num>? yValueMapper,
    ChartValueMapper<T, dynamic>? sortFieldValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    SortingOrder? sortingOrder,
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    MarkerSettings? markerSettings,
    EmptyPointSettings? emptyPointSettings,
    DataLabelSettings? dataLabelSettings,
    List<Trendline>? trendlines,
    bool? isVisible,
    bool? enableTooltip,
    List<double>? dashArray,
    double? animationDuration,
    Color? borderColor,
    double? borderWidth,
    LinearGradient? gradient,
    LinearGradient? borderGradient,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    double? opacity,
    double? animationDelay,
    this.borderDrawMode = BorderDrawMode.top,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader})
    : super(
          key: key,
          onRendererCreated: onRendererCreated,
          onCreateRenderer: onCreateRenderer,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          name: name,
          color: color,
          trendlines: trendlines,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          dashArray: dashArray,
          animationDuration: animationDuration,
          borderColor: borderColor,
          borderWidth: borderWidth,
          gradient: gradient,
          borderGradient: borderGradient,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader);