StochasticIndicator<T, D> constructor
StochasticIndicator<T, D> ({
- bool? isVisible,
- String? xAxisName,
- String? yAxisName,
- String? seriesName,
- List<
double> ? dashArray, - double? animationDuration,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? highValueMapper, - ChartValueMapper<
T, num> ? lowValueMapper, - ChartValueMapper<
T, num> ? openValueMapper, - ChartValueMapper<
T, num> ? closeValueMapper, - String? name,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- Color? signalLineColor,
- double? signalLineWidth,
- int? period,
- bool showZones = true,
- double overbought = 80,
- double oversold = 20,
- Color upperLineColor = Colors.red,
- double upperLineWidth = 2,
- Color lowerLineColor = Colors.green,
- double lowerLineWidth = 2,
- Color periodLineColor = Colors.yellow,
- double periodLineWidth = 2,
- num kPeriod = 3,
- num dPeriod = 5,
Creating an argument constructor of StochasticIndicator class.
Implementation
StochasticIndicator(
{bool? isVisible,
String? xAxisName,
String? yAxisName,
String? seriesName,
List<double>? dashArray,
double? animationDuration,
List<T>? dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? highValueMapper,
ChartValueMapper<T, num>? lowValueMapper,
ChartValueMapper<T, num>? openValueMapper,
ChartValueMapper<T, num>? closeValueMapper,
String? name,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
String? legendItemText,
Color? signalLineColor,
double? signalLineWidth,
int? period,
this.showZones = true,
this.overbought = 80,
this.oversold = 20,
this.upperLineColor = Colors.red,
this.upperLineWidth = 2,
this.lowerLineColor = Colors.green,
this.lowerLineWidth = 2,
this.periodLineColor = Colors.yellow,
this.periodLineWidth = 2,
this.kPeriod = 3,
this.dPeriod = 5})
: super(
isVisible: isVisible,
xAxisName: xAxisName,
yAxisName: yAxisName,
seriesName: seriesName,
dashArray: dashArray,
animationDuration: animationDuration,
dataSource: dataSource,
xValueMapper: xValueMapper,
highValueMapper: highValueMapper,
lowValueMapper: lowValueMapper,
openValueMapper: openValueMapper,
closeValueMapper: closeValueMapper,
name: name,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
legendItemText: legendItemText,
signalLineColor: signalLineColor,
signalLineWidth: signalLineWidth,
period: period);