onActualRangeChanged property Null safety

ChartActualRangeChangedCallback? onActualRangeChanged
final

Occurs when the visible range of an axis is changed, i.e. value changes for minimum, maximum, and interval. Here, you can get the actual and visible range of an axis.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           onActualRangeChanged: (ActualRangeChangedArgs args) => range(args)
       ));
}
void range(ActualRangeChangedArgs args) {
  print(args.visibleMin);
}

Implementation

final ChartActualRangeChangedCallback? onActualRangeChanged;