StepLineSeries<T, D> constructor

StepLineSeries<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. String? name,
  12. Color? color,
  13. double? width,
  14. MarkerSettings? markerSettings,
  15. List<Trendline>? trendlines,
  16. EmptyPointSettings? emptyPointSettings,
  17. DataLabelSettings? dataLabelSettings,
  18. bool? isVisible,
  19. bool? enableTooltip,
  20. List<double>? dashArray,
  21. double? animationDuration,
  22. SelectionBehavior? selectionBehavior,
  23. SortingOrder? sortingOrder,
  24. bool? isVisibleInLegend,
  25. LegendIconType? legendIconType,
  26. String? legendItemText,
  27. SeriesRendererCreatedCallback? onRendererCreated,
  28. ChartPointInteractionCallback? onPointTap,
  29. ChartPointInteractionCallback? onPointDoubleTap,
  30. ChartPointInteractionCallback? onPointLongPress,
  31. CartesianShaderCallback? onCreateShader,
  32. double? animationDelay,
  33. double? opacity,
})

Creating an argument constructor of StepLineSeries class.

Implementation

StepLineSeries(
    {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,
    String? name,
    Color? color,
    double? width,
    MarkerSettings? markerSettings,
    List<Trendline>? trendlines,
    EmptyPointSettings? emptyPointSettings,
    DataLabelSettings? dataLabelSettings,
    bool? isVisible,
    bool? enableTooltip,
    List<double>? dashArray,
    double? animationDuration,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    double? animationDelay,
    double? opacity})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          trendlines: trendlines,
          name: name,
          color: color,
          width: width ?? 2,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          dashArray: dashArray,
          isVisible: isVisible,
          animationDuration: animationDuration,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader);