BollingerBandIndicator<T, D> constructor
BollingerBandIndicator<T, D> ({
- bool isVisible = true,
- String? xAxisName,
- String? yAxisName,
- String? seriesName,
- List<
double> dashArray = const <double>[0, 0], - double animationDuration = 1500,
- double animationDelay = 0,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? closeValueMapper, - String? name,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- String? legendItemText,
- Color signalLineColor = Colors.blue,
- double signalLineWidth = 2,
- int period = 14,
- int standardDeviation = 2,
- Color upperLineColor = Colors.red,
- double upperLineWidth = 2,
- Color lowerLineColor = Colors.green,
- double lowerLineWidth = 2,
- Color bandColor = const Color(0x409e9e9e),
- ChartIndicatorRenderCallback? onRenderDetailsUpdate,
Creating an argument constructor of BollingerBandIndicator class.
Implementation
BollingerBandIndicator({
super.isVisible,
super.xAxisName,
super.yAxisName,
super.seriesName,
super.dashArray,
super.animationDuration,
super.animationDelay,
super.dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? closeValueMapper,
super.name,
super.isVisibleInLegend,
super.legendIconType,
super.legendItemText,
super.signalLineColor,
super.signalLineWidth,
this.period = 14,
this.standardDeviation = 2,
this.upperLineColor = Colors.red,
this.upperLineWidth = 2,
this.lowerLineColor = Colors.green,
this.lowerLineWidth = 2,
this.bandColor = const Color(0x409e9e9e),
super.onRenderDetailsUpdate,
}) : super(
xValueMapper: xValueMapper != null && dataSource != null
? (int index) => xValueMapper(dataSource[index], index)
: null,
closeValueMapper: closeValueMapper != null && dataSource != null
? (int index) => closeValueMapper(dataSource[index], index)
: null,
);