FinancialSeriesBase<T, D> constructor

const FinancialSeriesBase<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. List<T>? dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. ChartValueMapper<T, num>? lowValueMapper,
  6. ChartValueMapper<T, num>? highValueMapper,
  7. ChartValueMapper<T, num>? openValueMapper,
  8. ChartValueMapper<T, num>? closeValueMapper,
  9. ChartValueMapper<T, num>? volumeValueMapper,
  10. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  11. ChartValueMapper<T, Color>? pointColorMapper,
  12. ChartValueMapper<T, String>? dataLabelMapper,
  13. SortingOrder sortingOrder = SortingOrder.none,
  14. List<double>? dashArray,
  15. String? xAxisName,
  16. String? yAxisName,
  17. String? name,
  18. Color? color,
  19. double width = 0.7,
  20. double spacing = 0,
  21. MarkerSettings markerSettings = const MarkerSettings(),
  22. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  23. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  24. bool initialIsVisible = true,
  25. LinearGradient? gradient,
  26. bool enableTooltip = true,
  27. bool enableTrackball = true,
  28. double animationDuration = 1500,
  29. double borderWidth = 2,
  30. SelectionBehavior? selectionBehavior,
  31. List<int>? initialSelectedDataIndexes,
  32. bool isVisibleInLegend = true,
  33. LegendIconType legendIconType = LegendIconType.seriesType,
  34. String? legendItemText,
  35. bool enableSolidCandles = false,
  36. Color bearColor = Colors.red,
  37. Color bullColor = Colors.green,
  38. double opacity = 1.0,
  39. double animationDelay = 0,
  40. bool showIndicationForSameValues = false,
  41. List<Trendline>? trendlines,
  42. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  43. ChartPointInteractionCallback? onPointTap,
  44. ChartPointInteractionCallback? onPointDoubleTap,
  45. ChartPointInteractionCallback? onPointLongPress,
  46. CartesianShaderCallback? onCreateShader,
})

Creates an instance of financial series base.

Implementation

const FinancialSeriesBase({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  this.lowValueMapper,
  this.highValueMapper,
  this.openValueMapper,
  this.closeValueMapper,
  this.volumeValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.dashArray,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  this.spacing = 0,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.animationDuration,
  super.borderWidth = 2,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  this.enableSolidCandles = false,
  this.bearColor = Colors.red,
  this.bullColor = Colors.green,
  super.opacity,
  super.animationDelay,
  this.showIndicationForSameValues = false,
  super.trendlines,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});