createRenderer method

  1. @override
PieSeriesRenderer<T, D> createRenderer()
override

Create the pie series renderer.

Implementation

@override
PieSeriesRenderer<T, D> createRenderer() {
  PieSeriesRenderer<T, D>? seriesRenderer;
  if (onCreateRenderer != null) {
    seriesRenderer = onCreateRenderer!(this) as PieSeriesRenderer<T, D>;
    return seriesRenderer;
  }
  return PieSeriesRenderer<T, D>();
}