onPointTapped property Null safety

ChartPointTapCallback? onPointTapped
final

Occurs when tapping the series point. Here, you can get the series, series index and point index.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           onPointTapped: (PointTapArgs args) => point(args),
       ));
}
void point(PointTapArgs args) {
  print(args.seriesIndex);
}

Implementation

final ChartPointTapCallback? onPointTapped;