CandleSeries<T, D> constructor
const
CandleSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - List<
T> ? dataSource, - required ChartValueMapper<
T, D> ? xValueMapper, - required ChartValueMapper<
T, num> ? lowValueMapper, - required ChartValueMapper<
T, num> ? highValueMapper, - required ChartValueMapper<
T, num> ? openValueMapper, - required ChartValueMapper<
T, num> ? closeValueMapper, - ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - SortingOrder sortingOrder = SortingOrder.none,
- String? xAxisName,
- String? yAxisName,
- String? name,
- Color bearColor = Colors.red,
- Color bullColor = Colors.green,
- bool enableSolidCandles = false,
- EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- bool initialIsVisible = true,
- bool enableTooltip = true,
- double animationDuration = 1500,
- double borderWidth = 2,
- SelectionBehavior? selectionBehavior,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- String? legendItemText,
- List<
double> ? dashArray, - double opacity = 1.0,
- double animationDelay = 0,
- SeriesRendererCreatedCallback<
T, D> ? onRendererCreated, - ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- CartesianShaderCallback? onCreateShader,
- List<
int> ? initialSelectedDataIndexes, - bool showIndicationForSameValues = false,
- List<
Trendline> ? trendlines,
Creating an argument constructor of CandleSeries class.
Implementation
const CandleSeries({
super.key,
super.onCreateRenderer,
super.dataSource,
required super.xValueMapper,
required super.lowValueMapper,
required super.highValueMapper,
required super.openValueMapper,
required super.closeValueMapper,
super.sortFieldValueMapper,
super.pointColorMapper,
super.dataLabelMapper,
super.sortingOrder,
super.xAxisName,
super.yAxisName,
super.name,
super.bearColor,
super.bullColor,
super.enableSolidCandles,
super.emptyPointSettings,
super.dataLabelSettings,
super.initialIsVisible,
super.enableTooltip = true,
super.animationDuration,
super.borderWidth,
super.selectionBehavior,
super.isVisibleInLegend,
super.legendIconType,
super.legendItemText,
super.dashArray,
super.opacity,
super.animationDelay,
super.onRendererCreated,
super.onPointTap,
super.onPointDoubleTap,
super.onPointLongPress,
super.onCreateShader,
super.initialSelectedDataIndexes,
super.showIndicationForSameValues = false,
super.trendlines,
});