onIndicatorRender property Null safety

ChartIndicatorRenderCallback? onIndicatorRender
final

Occurs when the indicator is rendered. Here, you can get the indicatorname,, seriesname, indicator index, and width of indicators.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
            onIndicatorRender: (IndicatorRenderArgs args)
          {
           if(args.index==1)
           {
          args.indicatorName="changed1";
          args.signalLineColor=Colors.green;
          args.signalLineWidth=10.0;
          }
         },
       ));
}

Implementation

final ChartIndicatorRenderCallback? onIndicatorRender;