createRenderer method
Create the stacked bar series renderer.
Implementation
StackedBarSeriesRenderer createRenderer(ChartSeries<T, D> series) {
StackedBarSeriesRenderer stackedAreaSeriesRenderer;
if (onCreateRenderer != null) {
stackedAreaSeriesRenderer =
onCreateRenderer!(series) as StackedBarSeriesRenderer;
// ignore: unnecessary_null_comparison
assert(stackedAreaSeriesRenderer != null,
'This onCreateRenderer callback function should return value as extends from ChartSeriesRenderer class and should not be return value as null');
return stackedAreaSeriesRenderer;
}
return StackedBarSeriesRenderer();
}