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. SelectionBehavior? selectionBehavior,
  24. bool? isVisibleInLegend,
  25. LegendIconType? legendIconType,
  26. SortingOrder? sortingOrder,
  27. String? legendItemText,
  28. double? opacity,
  29. double? animationDelay,
  30. SeriesRendererCreatedCallback? onRendererCreated,
  31. ChartPointInteractionCallback? onPointTap,
  32. ChartPointInteractionCallback? onPointDoubleTap,
  33. ChartPointInteractionCallback? onPointLongPress,
  34. CartesianShaderCallback? onCreateShader,
  35. 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,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    SortingOrder? sortingOrder,
    String? legendItemText,
    double? opacity,
    double? animationDelay,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    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,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          groupName: groupName,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          initialSelectedDataIndexes: initialSelectedDataIndexes);