StackedLineSeries<T, D> constructor

StackedLineSeries<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. String? xAxisName,
  10. String? yAxisName,
  11. Color? color,
  12. double? width,
  13. MarkerSettings? markerSettings,
  14. EmptyPointSettings? emptyPointSettings,
  15. DataLabelSettings? dataLabelSettings,
  16. bool? isVisible,
  17. String? name,
  18. bool? enableTooltip,
  19. List<double>? dashArray,
  20. double? animationDuration,
  21. String? groupName,
  22. List<Trendline>? trendlines,
  23. SelectionSettings? selectionSettings,
  24. SelectionBehavior? selectionBehavior,
  25. bool? isVisibleInLegend,
  26. LegendIconType? legendIconType,
  27. SortingOrder? sortingOrder,
  28. String? legendItemText,
  29. double? opacity,
  30. SeriesRendererCreatedCallback? onRendererCreated,
  31. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of StackedLineSeries class.

Implementation

StackedLineSeries(
    {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,
    String? xAxisName,
    String? yAxisName,
    Color? color,
    double? width,
    MarkerSettings? markerSettings,
    EmptyPointSettings? emptyPointSettings,
    DataLabelSettings? dataLabelSettings,
    bool? isVisible,
    String? name,
    bool? enableTooltip,
    List<double>? dashArray,
    double? animationDuration,
    String? groupName,
    List<Trendline>? trendlines,
    // ignore: deprecated_member_use_from_same_package
    SelectionSettings? selectionSettings,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    SortingOrder? sortingOrder,
    String? legendItemText,
    double? opacity,
    SeriesRendererCreatedCallback? onRendererCreated,
    List<int>? initialSelectedDataIndexes})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          trendlines: trendlines,
          yAxisName: yAxisName,
          color: color,
          width: width ?? 2,
          markerSettings: markerSettings,
          emptyPointSettings: emptyPointSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          enableTooltip: enableTooltip,
          dashArray: dashArray,
          animationDuration: animationDuration,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          groupName: groupName,
          opacity: opacity,
          onRendererCreated: onRendererCreated,
          initialSelectedDataIndexes: initialSelectedDataIndexes);