createRenderer method
Create the stacked area series renderer.
Implementation
StackedColumnSeriesRenderer createRenderer(ChartSeries<T, D> series) {
StackedColumnSeriesRenderer stackedAreaSeriesRenderer;
if (onCreateRenderer != null) {
stackedAreaSeriesRenderer =
onCreateRenderer!(series) as StackedColumnSeriesRenderer;
// 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 StackedColumnSeriesRenderer();
}