ErrorBarSeries<T, D> constructor

ErrorBarSeries<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. SortingOrder? sortingOrder,
  9. String? xAxisName,
  10. String? yAxisName,
  11. String? name,
  12. Color? color,
  13. double? width,
  14. EmptyPointSettings? emptyPointSettings,
  15. bool? isVisible,
  16. double? animationDuration,
  17. double? opacity,
  18. double animationDelay = 1500,
  19. List<double>? dashArray,
  20. SeriesRendererCreatedCallback? onRendererCreated,
  21. String? legendItemText,
  22. bool isVisibleInLegend = false,
  23. LegendIconType legendIconType = LegendIconType.verticalLine,
  24. ErrorBarType? type = ErrorBarType.fixed,
  25. Direction? direction = Direction.both,
  26. RenderingMode? mode = RenderingMode.vertical,
  27. double? verticalErrorValue = 3,
  28. double? horizontalErrorValue = 1,
  29. double? verticalPositiveErrorValue = 3,
  30. double? horizontalPositiveErrorValue = 1,
  31. double? verticalNegativeErrorValue = 3,
  32. double? horizontalNegativeErrorValue = 1,
  33. double? capLength = 10,
  34. ChartErrorBarRenderCallback? onRenderDetailsUpdate,
  35. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of ErrorBarSeries class.

Implementation

ErrorBarSeries(
    {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,
    SortingOrder? sortingOrder,
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    double? width,
    EmptyPointSettings? emptyPointSettings,
    bool? isVisible,
    double? animationDuration,
    double? opacity,
    double animationDelay = 1500,
    List<double>? dashArray,
    SeriesRendererCreatedCallback? onRendererCreated,
    String? legendItemText,
    bool isVisibleInLegend = false,
    LegendIconType legendIconType = LegendIconType.verticalLine,
    this.type = ErrorBarType.fixed,
    this.direction = Direction.both,
    this.mode = RenderingMode.vertical,
    this.verticalErrorValue = 3,
    this.horizontalErrorValue = 1,
    this.verticalPositiveErrorValue = 3,
    this.horizontalPositiveErrorValue = 1,
    this.verticalNegativeErrorValue = 3,
    this.horizontalNegativeErrorValue = 1,
    this.capLength = 10,
    this.onRenderDetailsUpdate,
    CartesianShaderCallback? onCreateShader})
    : super(
        key: key,
        onCreateRenderer: onCreateRenderer,
        name: name,
        xValueMapper: xValueMapper,
        yValueMapper: yValueMapper,
        sortFieldValueMapper: sortFieldValueMapper,
        pointColorMapper: pointColorMapper,
        dataSource: dataSource,
        xAxisName: xAxisName,
        yAxisName: yAxisName,
        color: color,
        width: width ?? 2,
        isVisible: isVisible,
        emptyPointSettings: emptyPointSettings,
        animationDuration: animationDuration,
        legendItemText: legendItemText,
        isVisibleInLegend: isVisibleInLegend,
        legendIconType: legendIconType,
        sortingOrder: sortingOrder,
        opacity: opacity,
        animationDelay: animationDelay,
        dashArray: dashArray,
        onRendererCreated: onRendererCreated,
        onCreateShader: onCreateShader,
      );