createRenderer method
Create the bar series renderer.
Implementation
@override
BarSeriesRenderer<T, D> createRenderer() {
BarSeriesRenderer<T, D>? renderer;
if (onCreateRenderer != null) {
renderer = onCreateRenderer!(this) as BarSeriesRenderer<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 ?? BarSeriesRenderer<T, D>();
}