onPointTapped property Null safety

ChartPointTapCallback? onPointTapped
@Deprecated('Use onPointTap in ChartSeries instead.'), 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

@Deprecated('Use onPointTap in ChartSeries instead.')
final ChartPointTapCallback? onPointTapped;