createRenderer method
Implementation
@override
PyramidSeriesRenderer<T, D> createRenderer() {
PyramidSeriesRenderer<T, D>? renderer;
if (onCreateRenderer != null) {
renderer = onCreateRenderer!(this) as PyramidSeriesRenderer<T, D>?;
assert(
renderer != null,
'This onCreateRenderer callback function should return value as '
'extends from ChartSeriesRenderer class and should not be return '
'value as null');
}
return renderer ?? PyramidSeriesRenderer<T, D>();
}