onRendererCreated property

PyramidSeriesRendererCreatedCallback<T, D>? onRendererCreated
final

Triggers when the series renderer is created. Using this callback, able to get the ChartSeriesController instance, which is used to access the public methods in the series.

Defaults to null.

Widget build(BuildContext context) {
   PyramidSeriesController _pyramidSeriesController;
   return Container(
       child: SfPyramidChart(
           series: PyramidSeries<SalesData, num>(
                   onRendererCreated:
                     (PyramidSeriesController controller) {
                      _pyramidSeriesController = controller;
                   },
             ),
       )
   );
}

Implementation

final PyramidSeriesRendererCreatedCallback<T, D>? onRendererCreated;