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