SmaIndicator<T, D> constructor
SmaIndicator<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,
- String? valueField,
Creating an argument constructor of SmaIndicator class.
Implementation
SmaIndicator({
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,
String? valueField,
}) : valueField = (valueField ?? 'close').toLowerCase(),
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);