onRenderDetailsUpdate property Null safety

ChartIndicatorRenderCallback? onRenderDetailsUpdate
final

Callback which gets called while rendering the indicators

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
 indicators: <TechnicalIndicators<dynamic, dynamic>>[
           SmaIndicator<dynamic, dynamic>(
onRenderDetailsUpdate: (IndicatorRenderParams params) {
            return TechnicalIndicatorRenderDetails(Colors.cyan, 3.0, <double>[5,5]);
               },
)],
       ));
}

Implementation

final ChartIndicatorRenderCallback? onRenderDetailsUpdate;