closeValueMapper property
Value mapper to map the close values with technical indicators.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
indicators: <TechnicalIndicators<dynamic, dynamic>>[
SmaIndicator<dynamic, dynamic>(
closeValueMapper: (Sample sales, _) => sales.close,
),
],
));
}
Implementation
final ChartIndexedValueMapper<num>? closeValueMapper;