ErrorBarSeries<T, D> constructor

const ErrorBarSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. 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 = SortingOrder.none,
  9. String? xAxisName,
  10. String? yAxisName,
  11. String? name,
  12. Color? color,
  13. double width = 2.0,
  14. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  15. bool initialIsVisible = true,
  16. double animationDuration = 1500,
  17. double opacity = 1.0,
  18. double animationDelay = 1500,
  19. List<double>? dashArray,
  20. SeriesRendererCreatedCallback<T, D>? 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.0,
  28. double? horizontalErrorValue = 1.0,
  29. double? verticalPositiveErrorValue = 3.0,
  30. double? horizontalPositiveErrorValue = 1.0,
  31. double? verticalNegativeErrorValue = 3.0,
  32. double? horizontalNegativeErrorValue = 1.0,
  33. double? capLength = 10.0,
  34. ChartErrorBarRenderCallback? onRenderDetailsUpdate,
  35. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of ErrorBarSeries class.

Implementation

const ErrorBarSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  double width = 2.0,
  super.emptyPointSettings,
  super.initialIsVisible,
  super.animationDuration,
  super.opacity,
  super.animationDelay = 1500,
  super.dashArray,
  super.onRendererCreated,
  super.legendItemText,
  super.isVisibleInLegend = false,
  super.legendIconType = LegendIconType.verticalLine,
  this.type = ErrorBarType.fixed,
  this.direction = Direction.both,
  this.mode = RenderingMode.vertical,
  this.verticalErrorValue = 3.0,
  this.horizontalErrorValue = 1.0,
  this.verticalPositiveErrorValue = 3.0,
  this.horizontalPositiveErrorValue = 1.0,
  this.verticalNegativeErrorValue = 3.0,
  this.horizontalNegativeErrorValue = 1.0,
  this.capLength = 10.0,
  this.onRenderDetailsUpdate,
  super.onCreateShader,
}) : super(borderWidth: width);